From caa28be705bdbf9e3eefb8f7ea6444f858e67076 Mon Sep 17 00:00:00 2001 From: david-pikas <55796758+david-pikas@users.noreply.github.com> Date: Thu, 8 Dec 2022 11:01:56 +0100 Subject: 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 --- queries/latex/highlights.scm | 17 ++++++++++------- 1 file 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 -- cgit v1.2.3-70-g09d2