mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
fix(latex): update parser and queries
This commit is contained in:
parent
689a078f91
commit
b6ebdaeb44
2 changed files with 7 additions and 7 deletions
|
|
@ -156,7 +156,7 @@
|
||||||
"revision": "7744b56f03ac1e5643fad23c9dd90837fe97291e"
|
"revision": "7744b56f03ac1e5643fad23c9dd90837fe97291e"
|
||||||
},
|
},
|
||||||
"latex": {
|
"latex": {
|
||||||
"revision": "1666e9780de42a31b1376d32fbe8332e8dd5850f"
|
"revision": "1ea9f87d30df20e13cde292ff4d6c4d8dd979b16"
|
||||||
},
|
},
|
||||||
"ledger": {
|
"ledger": {
|
||||||
"revision": "0cdeb0e51411a3ba5493662952c3039de08939ca"
|
"revision": "0cdeb0e51411a3ba5493662952c3039de08939ca"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
;; General syntax
|
;; General syntax
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
||||||
(command_name) @function
|
(generic_command) @function
|
||||||
(caption
|
(caption
|
||||||
command: _ @function)
|
command: _ @function)
|
||||||
|
|
||||||
|
|
@ -194,29 +194,29 @@
|
||||||
.
|
.
|
||||||
(curly_group (_) @text.title))
|
(curly_group (_) @text.title))
|
||||||
|
|
||||||
((command
|
((generic_command
|
||||||
command: (command_name) @_name
|
command: (command_name) @_name
|
||||||
arg: (curly_group
|
arg: (curly_group
|
||||||
(text) @text.title))
|
(text) @text.title))
|
||||||
(#eq? @_name "\\frametitle"))
|
(#eq? @_name "\\frametitle"))
|
||||||
|
|
||||||
;; Formatting
|
;; Formatting
|
||||||
((command
|
((generic_command
|
||||||
command: (command_name) @_name
|
command: (command_name) @_name
|
||||||
arg: (curly_group (_) @text.emphasis))
|
arg: (curly_group (_) @text.emphasis))
|
||||||
(#eq? @_name "\\emph"))
|
(#eq? @_name "\\emph"))
|
||||||
|
|
||||||
((command
|
((generic_command
|
||||||
command: (command_name) @_name
|
command: (command_name) @_name
|
||||||
arg: (curly_group (_) @text.emphasis))
|
arg: (curly_group (_) @text.emphasis))
|
||||||
(#match? @_name "^(\\\\textit|\\\\mathit)$"))
|
(#match? @_name "^(\\\\textit|\\\\mathit)$"))
|
||||||
|
|
||||||
((command
|
((generic_command
|
||||||
command: (command_name) @_name
|
command: (command_name) @_name
|
||||||
arg: (curly_group (_) @text.strong))
|
arg: (curly_group (_) @text.strong))
|
||||||
(#match? @_name "^(\\\\textbf|\\\\mathbf)$"))
|
(#match? @_name "^(\\\\textbf|\\\\mathbf)$"))
|
||||||
|
|
||||||
((command
|
((generic_command
|
||||||
command: (command_name) @_name
|
command: (command_name) @_name
|
||||||
.
|
.
|
||||||
arg: (curly_group (_) @text.uri))
|
arg: (curly_group (_) @text.uri))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue