mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
highlights(latex): add more commands
This commit is contained in:
parent
68bf36c917
commit
bb2846fd9b
1 changed files with 215 additions and 6 deletions
|
|
@ -26,13 +26,8 @@
|
||||||
"\\DeclareMathOperator"
|
"\\DeclareMathOperator"
|
||||||
"\\newglossaryentry"
|
"\\newglossaryentry"
|
||||||
"\\caption"
|
"\\caption"
|
||||||
"\\cite"
|
|
||||||
"\\label"
|
"\\label"
|
||||||
"\\newlabel"
|
"\\newlabel"
|
||||||
"\\label"
|
|
||||||
"\\ref"
|
|
||||||
"\\cref"
|
|
||||||
"\\eqref"
|
|
||||||
"\\color"
|
"\\color"
|
||||||
"\\colorbox"
|
"\\colorbox"
|
||||||
"\\textcolor"
|
"\\textcolor"
|
||||||
|
|
@ -42,9 +37,223 @@
|
||||||
"\\newtheorem"
|
"\\newtheorem"
|
||||||
"\\declaretheorem"
|
"\\declaretheorem"
|
||||||
"\\newacronym"
|
"\\newacronym"
|
||||||
"\\newglossaryentry"
|
|
||||||
] @function.macro
|
] @function.macro
|
||||||
|
|
||||||
|
[
|
||||||
|
"\\ref"
|
||||||
|
"\\vref"
|
||||||
|
"\\Vref"
|
||||||
|
"\\autoref"
|
||||||
|
"\\pageref"
|
||||||
|
"\\cref"
|
||||||
|
"\\Cref"
|
||||||
|
"\\cref*"
|
||||||
|
"\\Cref*"
|
||||||
|
"\\namecref"
|
||||||
|
"\\nameCref"
|
||||||
|
"\\lcnamecref"
|
||||||
|
"\\namecrefs"
|
||||||
|
"\\nameCrefs"
|
||||||
|
"\\lcnamecrefs"
|
||||||
|
"\\labelcref"
|
||||||
|
"\\labelcpageref"
|
||||||
|
"\\crefrange"
|
||||||
|
"\\crefrange"
|
||||||
|
"\\Crefrange"
|
||||||
|
"\\Crefrange"
|
||||||
|
"\\crefrange*"
|
||||||
|
"\\crefrange*"
|
||||||
|
"\\Crefrange*"
|
||||||
|
"\\Crefrange*"
|
||||||
|
] @function.macro
|
||||||
|
|
||||||
|
[
|
||||||
|
"\\cite"
|
||||||
|
"\\cite*"
|
||||||
|
"\\Cite"
|
||||||
|
"\\nocite"
|
||||||
|
"\\citet"
|
||||||
|
"\\citep"
|
||||||
|
"\\citet*"
|
||||||
|
"\\citep*"
|
||||||
|
"\\citeauthor"
|
||||||
|
"\\citeauthor*"
|
||||||
|
"\\Citeauthor"
|
||||||
|
"\\Citeauthor*"
|
||||||
|
"\\citetitle"
|
||||||
|
"\\citetitle*"
|
||||||
|
"\\citeyear"
|
||||||
|
"\\citeyear*"
|
||||||
|
"\\citedate"
|
||||||
|
"\\citedate*"
|
||||||
|
"\\citeurl"
|
||||||
|
"\\fullcite"
|
||||||
|
"\\citeyearpar"
|
||||||
|
"\\citealt"
|
||||||
|
"\\citealp"
|
||||||
|
"\\citetext"
|
||||||
|
"\\parencite"
|
||||||
|
"\\parencite*"
|
||||||
|
"\\Parencite"
|
||||||
|
"\\footcite"
|
||||||
|
"\\footfullcite"
|
||||||
|
"\\footcitetext"
|
||||||
|
"\\textcite"
|
||||||
|
"\\Textcite"
|
||||||
|
"\\smartcite"
|
||||||
|
"\\Smartcite"
|
||||||
|
"\\supercite"
|
||||||
|
"\\autocite"
|
||||||
|
"\\Autocite"
|
||||||
|
"\\autocite*"
|
||||||
|
"\\Autocite*"
|
||||||
|
"\\volcite"
|
||||||
|
"\\Volcite"
|
||||||
|
"\\pvolcite"
|
||||||
|
"\\Pvolcite"
|
||||||
|
"\\fvolcite"
|
||||||
|
"\\ftvolcite"
|
||||||
|
"\\svolcite"
|
||||||
|
"\\Svolcite"
|
||||||
|
"\\tvolcite"
|
||||||
|
"\\Tvolcite"
|
||||||
|
"\\avolcite"
|
||||||
|
"\\Avolcite"
|
||||||
|
"\\notecite"
|
||||||
|
"\\notecite"
|
||||||
|
"\\pnotecite"
|
||||||
|
"\\Pnotecite"
|
||||||
|
"\\fnotecite"
|
||||||
|
] @function.macro
|
||||||
|
|
||||||
|
[
|
||||||
|
"\\ref"
|
||||||
|
"\\vref"
|
||||||
|
"\\Vref"
|
||||||
|
"\\autoref"
|
||||||
|
"\\pageref"
|
||||||
|
"\\cref"
|
||||||
|
"\\Cref"
|
||||||
|
"\\cref*"
|
||||||
|
"\\Cref*"
|
||||||
|
"\\namecref"
|
||||||
|
"\\nameCref"
|
||||||
|
"\\lcnamecref"
|
||||||
|
"\\namecrefs"
|
||||||
|
"\\nameCrefs"
|
||||||
|
"\\lcnamecrefs"
|
||||||
|
"\\labelcref"
|
||||||
|
"\\labelcpageref"
|
||||||
|
] @function.macro
|
||||||
|
|
||||||
|
|
||||||
|
[
|
||||||
|
"\\crefrange"
|
||||||
|
"\\crefrange"
|
||||||
|
"\\Crefrange"
|
||||||
|
"\\Crefrange"
|
||||||
|
"\\crefrange*"
|
||||||
|
"\\crefrange*"
|
||||||
|
"\\Crefrange*"
|
||||||
|
"\\Crefrange*"
|
||||||
|
] @function.macro
|
||||||
|
|
||||||
|
|
||||||
|
[
|
||||||
|
"\\gls"
|
||||||
|
"\\Gls"
|
||||||
|
"\\GLS"
|
||||||
|
"\\glspl"
|
||||||
|
"\\Glspl"
|
||||||
|
"\\GLSpl"
|
||||||
|
"\\glsdisp"
|
||||||
|
"\\glslink"
|
||||||
|
"\\glstext"
|
||||||
|
"\\Glstext"
|
||||||
|
"\\GLStext"
|
||||||
|
"\\glsfirst"
|
||||||
|
"\\Glsfirst"
|
||||||
|
"\\GLSfirst"
|
||||||
|
"\\glsplural"
|
||||||
|
"\\Glsplural"
|
||||||
|
"\\GLSplural"
|
||||||
|
"\\glsfirstplural"
|
||||||
|
"\\Glsfirstplural"
|
||||||
|
"\\GLSfirstplural"
|
||||||
|
"\\glsname"
|
||||||
|
"\\Glsname"
|
||||||
|
"\\GLSname"
|
||||||
|
"\\glssymbol"
|
||||||
|
"\\Glssymbol"
|
||||||
|
"\\glsdesc"
|
||||||
|
"\\Glsdesc"
|
||||||
|
"\\GLSdesc"
|
||||||
|
"\\glsuseri"
|
||||||
|
"\\Glsuseri"
|
||||||
|
"\\GLSuseri"
|
||||||
|
"\\glsuserii"
|
||||||
|
"\\Glsuserii"
|
||||||
|
"\\GLSuserii"
|
||||||
|
"\\glsuseriii"
|
||||||
|
"\\Glsuseriii"
|
||||||
|
"\\GLSuseriii"
|
||||||
|
"\\glsuseriv"
|
||||||
|
"\\Glsuseriv"
|
||||||
|
"\\GLSuseriv"
|
||||||
|
"\\glsuserv"
|
||||||
|
"\\Glsuserv"
|
||||||
|
"\\GLSuserv"
|
||||||
|
"\\glsuservi"
|
||||||
|
"\\Glsuservi"
|
||||||
|
"\\GLSuservi"
|
||||||
|
] @function.macro
|
||||||
|
|
||||||
|
|
||||||
|
[
|
||||||
|
"\\acrshort"
|
||||||
|
"\\Acrshort"
|
||||||
|
"\\ACRshort"
|
||||||
|
"\\acrshortpl"
|
||||||
|
"\\Acrshortpl"
|
||||||
|
"\\ACRshortpl"
|
||||||
|
"\\acrlong"
|
||||||
|
"\\Acrlong"
|
||||||
|
"\\ACRlong"
|
||||||
|
"\\acrlongpl"
|
||||||
|
"\\Acrlongpl"
|
||||||
|
"\\ACRlongpl"
|
||||||
|
"\\acrfull"
|
||||||
|
"\\Acrfull"
|
||||||
|
"\\ACRfull"
|
||||||
|
"\\acrfullpl"
|
||||||
|
"\\Acrfullpl"
|
||||||
|
"\\ACRfullpl"
|
||||||
|
"\\acs"
|
||||||
|
"\\Acs"
|
||||||
|
"\\acsp"
|
||||||
|
"\\Acsp"
|
||||||
|
"\\acl"
|
||||||
|
"\\Acl"
|
||||||
|
"\\aclp"
|
||||||
|
"\\Aclp"
|
||||||
|
"\\acf"
|
||||||
|
"\\Acf"
|
||||||
|
"\\acfp"
|
||||||
|
"\\Acfp"
|
||||||
|
"\\ac"
|
||||||
|
"\\Ac"
|
||||||
|
"\\acp"
|
||||||
|
"\\glsentrylong"
|
||||||
|
"\\Glsentrylong"
|
||||||
|
"\\glsentrylongpl"
|
||||||
|
"\\Glsentrylongpl"
|
||||||
|
"\\glsentryshort"
|
||||||
|
"\\Glsentryshort"
|
||||||
|
"\\glsentryshortpl"
|
||||||
|
"\\Glsentryshortpl"
|
||||||
|
"\\glsentryfullpl"
|
||||||
|
"\\Glsentryfullpl"
|
||||||
|
]
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
(bracket_group) @parameter
|
(bracket_group) @parameter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue