latex: @nospell for environment names, citations and commands (#3948)

* Added @nospell for environment names and commands

* Added citations to @nospell

Co-authored-by: David Pikas <David.Pikas@iar.com>
This commit is contained in:
david-pikas 2022-12-08 11:01:56 +01:00 committed by GitHub
parent 582e5683fb
commit caa28be705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,10 +237,13 @@
command: _ @include command: _ @include
paths: (curly_group_path_list) @string) paths: (curly_group_path_list) @string)
( (text) @spell
(text) @spell (inline_formula) @nospell
(#not-has-parent? @spell (displayed_equation) @nospell
inline_formula (key_value_pair) @nospell
displayed_equation (generic_environment
) begin: _ @nospell
) end: _ @nospell)
(citation
keys: _ @nospell)
(command_name) @nospell