fix(latex): update parser and queries

This commit is contained in:
Christian Clason 2022-02-27 11:29:11 +01:00 committed by Christian Clason
parent 689a078f91
commit b6ebdaeb44
2 changed files with 7 additions and 7 deletions

View file

@ -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))