diff options
| author | david-pikas <55796758+david-pikas@users.noreply.github.com> | 2022-12-08 11:01:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-08 11:01:56 +0100 |
| commit | caa28be705bdbf9e3eefb8f7ea6444f858e67076 (patch) | |
| tree | eab90946c319453cfef5a129e0888086655b10d8 /queries/latex | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-caa28be705bdbf9e3eefb8f7ea6444f858e67076.tar nvim-treesitter-caa28be705bdbf9e3eefb8f7ea6444f858e67076.tar.gz nvim-treesitter-caa28be705bdbf9e3eefb8f7ea6444f858e67076.tar.bz2 nvim-treesitter-caa28be705bdbf9e3eefb8f7ea6444f858e67076.tar.lz nvim-treesitter-caa28be705bdbf9e3eefb8f7ea6444f858e67076.tar.xz nvim-treesitter-caa28be705bdbf9e3eefb8f7ea6444f858e67076.tar.zst nvim-treesitter-caa28be705bdbf9e3eefb8f7ea6444f858e67076.zip | |
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>
Diffstat (limited to 'queries/latex')
| -rw-r--r-- | queries/latex/highlights.scm | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index b9ded3d6b..791689ff5 100644 --- a/queries/latex/highlights.scm +++ b/queries/latex/highlights.scm @@ -237,10 +237,13 @@ command: _ @include paths: (curly_group_path_list) @string) -( - (text) @spell - (#not-has-parent? @spell - inline_formula - displayed_equation - ) -) +(text) @spell +(inline_formula) @nospell +(displayed_equation) @nospell +(key_value_pair) @nospell +(generic_environment + begin: _ @nospell + end: _ @nospell) +(citation + keys: _ @nospell) +(command_name) @nospell |
