diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-02-27 11:29:11 +0100 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-02-27 12:38:45 +0100 |
| commit | b6ebdaeb4437d3469d7a0e0d723d3fb514c4d6ae (patch) | |
| tree | 142ba17318cdd87bef7b849c6d790fdca22642cb /queries | |
| parent | 689a078f916d024cb816178f55e81cf6fe7a6237 (diff) | |
fix(latex): update parser and queries
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/latex/highlights.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index a2cfa201..bfa3edbc 100644 --- a/queries/latex/highlights.scm +++ b/queries/latex/highlights.scm @@ -1,7 +1,7 @@ ;; General syntax (ERROR) @error -(command_name) @function +(generic_command) @function (caption command: _ @function) @@ -194,29 +194,29 @@ . (curly_group (_) @text.title)) -((command +((generic_command command: (command_name) @_name arg: (curly_group (text) @text.title)) (#eq? @_name "\\frametitle")) ;; Formatting -((command +((generic_command command: (command_name) @_name arg: (curly_group (_) @text.emphasis)) (#eq? @_name "\\emph")) -((command +((generic_command command: (command_name) @_name arg: (curly_group (_) @text.emphasis)) (#match? @_name "^(\\\\textit|\\\\mathit)$")) -((command +((generic_command command: (command_name) @_name arg: (curly_group (_) @text.strong)) (#match? @_name "^(\\\\textbf|\\\\mathbf)$")) -((command +((generic_command command: (command_name) @_name . arg: (curly_group (_) @text.uri)) |
