@@ -0,0 +1,410 @@
7+;; This highlights the whole environment like vimtex does
10+ name: (word) @_env)) @text.math
12+ "displaymath" "displaymath*"
13+ "equation" "equation*"
14+ "multline" "multline*"
15+ "eqnarray" "eqnarray*"
21+ "flalign" "flalign*"))
24+ (generic_command_name)
27+ "\\DeclareRobustCommand"
28+ "\\DeclareMathOperator"
262+(bracket_group) @parameter
264+[(math_operator) "="] @operator
293+"\\item" @punctuation.special
295+((word) @punctuation.delimiter
296+(#eq? @punctuation.delimiter "&"))
298+["$" "\\[" "\\]" "\\(" "\\)"] @punctuation.delimiter
301+ name: (_) @text.reference)
303+ label: (_) @text.reference)
304+(equation_label_reference
305+ label: (_) @text.reference)
307+ label: (_) @text.reference)
309+ label: (_) @text.reference)
312+ key: (word) @text.reference)
318+["[" "]" "{" "}"] @punctuation.bracket ;"(" ")" is has no special meaning in LaTeX
321+ text: (brace_group) @text.title)
324+ text: (brace_group) @text.title)
327+ text: (brace_group) @text.title)
330+ text: (brace_group) @text.title)
333+ text: (brace_group) @text.title)
336+ text: (brace_group) @text.title)
339+ text: (brace_group) @text.title)
343+ name: (word) @_frame)
345+ child: (text) @text.title))
346+ (#eq? @_frame "frame"))
349+ name:(generic_command_name) @_name
351+ (text) @text.title))
352+ (#eq? @_name "\\frametitle"))
357+ name:(generic_command_name) @_name
358+ arg: (_) @text.emphasis)
359+ (#eq? @_name "\\emph"))
362+ name:(generic_command_name) @_name
363+ arg: (_) @text.emphasis)
364+ (#match? @_name "^(\\\\textit|\\\\mathit)$"))
367+ name:(generic_command_name) @_name
368+ arg: (_) @text.strong)
369+ (#match? @_name "^(\\\\textbf|\\\\mathbf)$"))
372+ name:(generic_command_name) @_name
375+ (#match? @_name "^(\\\\url|\\\\href)$"))
385+ name: (_) @text.environment.name
386+ (#not-any-of? @text.environment.name
387+ "displaymath" "displaymath*"
388+ "equation" "equation*"
389+ "multline" "multline*"
390+ "eqnarray" "eqnarray*"
394+ "alignat" "alignat*"
396+ "flalign" "flalign*"))
399+ name: (_) @text.environment.name
400+ (#not-any-of? @text.environment.name
401+ "displaymath" "displaymath*"
402+ "equation" "equation*"
403+ "multline" "multline*"
404+ "eqnarray" "eqnarray*"
408+ "alignat" "alignat*"
410+ "flalign" "flalign*"))