| 1 |
|
| 2 |
(command_name) @function |
| 3 |
(caption |
| 4 |
command: _ @function) |
| 5 |
|
| 6 |
(key_value_pair |
| 7 |
key: (_) @variable.parameter |
| 8 |
value: (_)) |
| 9 |
|
| 10 |
[ |
| 11 |
(comment) |
| 12 |
(line_comment) |
| 13 |
(block_comment) |
| 14 |
(comment_environment) |
| 15 |
] @comment |
| 16 |
|
| 17 |
[ |
| 18 |
(brack_group) |
| 19 |
(brack_group_argc) |
| 20 |
] @variable.parameter |
| 21 |
|
| 22 |
[(operator) "="] @operator |
| 23 |
|
| 24 |
"\\item" @punctuation.special |
| 25 |
|
| 26 |
((word) @punctuation.delimiter |
| 27 |
(#eq? @punctuation.delimiter "&")) |
| 28 |
|
| 29 |
["[" "]" "{" "}"] @punctuation.bracket |
| 30 |
(math_delimiter |
| 31 |
left_command: _ @punctuation.delimiter |
| 32 |
left_delimiter: _ @punctuation.delimiter |
| 33 |
right_command: _ @punctuation.delimiter |
| 34 |
right_delimiter: _ @punctuation.delimiter |
| 35 |
) |
| 36 |
|
| 37 |
|
| 38 |
(begin |
| 39 |
command: _ @function.builtin |
| 40 |
name: (curly_group_text (text) @function.macro)) |
| 41 |
|
| 42 |
(end |
| 43 |
command: _ @function.builtin |
| 44 |
name: (curly_group_text (text) @function.macro)) |
| 45 |
|
| 46 |
|
| 47 |
(new_command_definition |
| 48 |
command: _ @function.macro |
| 49 |
declaration: (curly_group_command_name (_) @function)) |
| 50 |
(old_command_definition |
| 51 |
command: _ @function.macro |
| 52 |
declaration: (_) @function) |
| 53 |
(let_command_definition |
| 54 |
command: _ @function.macro |
| 55 |
declaration: (_) @function) |
| 56 |
|
| 57 |
(environment_definition |
| 58 |
command: _ @function.macro |
| 59 |
name: (curly_group_text (_) @constant)) |
| 60 |
|
| 61 |
(theorem_definition |
| 62 |
command: _ @function.macro |
| 63 |
name: (curly_group_text (_) @constant)) |
| 64 |
|
| 65 |
(paired_delimiter_definition |
| 66 |
command: _ @function.macro |
| 67 |
declaration: (curly_group_command_name (_) @function)) |
| 68 |
|
| 69 |
(label_definition |
| 70 |
command: _ @function.macro |
| 71 |
name: (curly_group_text (_) @label)) |
| 72 |
(label_reference_range |
| 73 |
command: _ @function.macro |
| 74 |
from: (curly_group_text (_) @label) |
| 75 |
to: (curly_group_text (_) @label)) |
| 76 |
(label_reference |
| 77 |
command: _ @function.macro |
| 78 |
names: (curly_group_text_list (_) @label)) |
| 79 |
(label_number |
| 80 |
command: _ @function.macro |
| 81 |
name: (curly_group_text (_) @label) |
| 82 |
number: (_) @markup.link.label) |
| 83 |
|
| 84 |
(citation |
| 85 |
command: _ @function.macro |
| 86 |
keys: (curly_group_text_list) @string) |
| 87 |
|
| 88 |
(glossary_entry_definition |
| 89 |
command: _ @function.macro |
| 90 |
name: (curly_group_text (_) @string)) |
| 91 |
(glossary_entry_reference |
| 92 |
command: _ @function.macro |
| 93 |
name: (curly_group_text (_) @string)) |
| 94 |
|
| 95 |
(acronym_definition |
| 96 |
command: _ @function.macro |
| 97 |
name: (curly_group_text (_) @string)) |
| 98 |
(acronym_reference |
| 99 |
command: _ @function.macro |
| 100 |
name: (curly_group_text (_) @string)) |
| 101 |
|
| 102 |
(color_definition |
| 103 |
command: _ @function.macro |
| 104 |
name: (curly_group_text (_) @string)) |
| 105 |
(color_reference |
| 106 |
command: _ @function.macro |
| 107 |
name: (curly_group_text (_) @string)) |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
(displayed_equation) @markup.raw.block |
| 112 |
(inline_formula) @markup.raw.inline |
| 113 |
|
| 114 |
(math_environment |
| 115 |
(begin |
| 116 |
command: _ @function.builtin |
| 117 |
name: (curly_group_text (text) @markup.raw))) |
| 118 |
|
| 119 |
(math_environment |
| 120 |
(text) @markup.raw) |
| 121 |
|
| 122 |
(math_environment |
| 123 |
(end |
| 124 |
command: _ @function.builtin |
| 125 |
name: (curly_group_text (text) @markup.raw))) |
| 126 |
|
| 127 |
|
| 128 |
(title_declaration |
| 129 |
command: _ @namespace |
| 130 |
options: (brack_group (_) @markup.heading)? |
| 131 |
text: (curly_group (_) @markup.heading)) |
| 132 |
|
| 133 |
(author_declaration |
| 134 |
command: _ @namespace |
| 135 |
authors: (curly_group_author_list |
| 136 |
((author)+ @markup.heading))) |
| 137 |
|
| 138 |
(chapter |
| 139 |
command: _ @namespace |
| 140 |
toc: (brack_group (_) @markup.heading)? |
| 141 |
text: (curly_group (_) @markup.heading)) |
| 142 |
|
| 143 |
(part |
| 144 |
command: _ @namespace |
| 145 |
toc: (brack_group (_) @markup.heading)? |
| 146 |
text: (curly_group (_) @markup.heading)) |
| 147 |
|
| 148 |
(section |
| 149 |
command: _ @namespace |
| 150 |
toc: (brack_group (_) @markup.heading)? |
| 151 |
text: (curly_group (_) @markup.heading)) |
| 152 |
|
| 153 |
(subsection |
| 154 |
command: _ @namespace |
| 155 |
toc: (brack_group (_) @markup.heading)? |
| 156 |
text: (curly_group (_) @markup.heading)) |
| 157 |
|
| 158 |
(subsubsection |
| 159 |
command: _ @namespace |
| 160 |
toc: (brack_group (_) @markup.heading)? |
| 161 |
text: (curly_group (_) @markup.heading)) |
| 162 |
|
| 163 |
(paragraph |
| 164 |
command: _ @namespace |
| 165 |
toc: (brack_group (_) @markup.heading)? |
| 166 |
text: (curly_group (_) @markup.heading)) |
| 167 |
|
| 168 |
(subparagraph |
| 169 |
command: _ @namespace |
| 170 |
toc: (brack_group (_) @markup.heading)? |
| 171 |
text: (curly_group (_) @markup.heading)) |
| 172 |
|
| 173 |
|
| 174 |
(generic_environment |
| 175 |
(begin |
| 176 |
name: (curly_group_text |
| 177 |
(text) @markup.heading) |
| 178 |
(#any-of? @markup.heading "frame")) |
| 179 |
. |
| 180 |
(curly_group (_) @markup.heading)) |
| 181 |
|
| 182 |
((generic_command |
| 183 |
command: (command_name) @_name |
| 184 |
arg: (curly_group |
| 185 |
(text) @markup.heading)) |
| 186 |
(#eq? @_name "\\frametitle")) |
| 187 |
|
| 188 |
|
| 189 |
((generic_command |
| 190 |
command: (command_name) @_name |
| 191 |
arg: (curly_group (_) @markup.italic)) |
| 192 |
(#eq? @_name "\\emph")) |
| 193 |
|
| 194 |
((generic_command |
| 195 |
command: (command_name) @_name |
| 196 |
arg: (curly_group (_) @markup.italic)) |
| 197 |
(#match? @_name "^(\\\\textit|\\\\mathit)$")) |
| 198 |
|
| 199 |
((generic_command |
| 200 |
command: (command_name) @_name |
| 201 |
arg: (curly_group (_) @markup.bold)) |
| 202 |
(#match? @_name "^(\\\\textbf|\\\\mathbf)$")) |
| 203 |
|
| 204 |
((generic_command |
| 205 |
command: (command_name) @_name |
| 206 |
. |
| 207 |
arg: (curly_group (_) @markup.link.url)) |
| 208 |
(#match? @_name "^(\\\\url|\\\\href)$")) |
| 209 |
|
| 210 |
|
| 211 |
(class_include |
| 212 |
command: _ @keyword.storage.type |
| 213 |
path: (curly_group_path) @string) |
| 214 |
|
| 215 |
(package_include |
| 216 |
command: _ @keyword.storage.type |
| 217 |
paths: (curly_group_path_list) @string) |
| 218 |
|
| 219 |
(latex_include |
| 220 |
command: _ @keyword.control.import |
| 221 |
path: (curly_group_path) @string) |
| 222 |
(import_include |
| 223 |
command: _ @keyword.control.import |
| 224 |
directory: (curly_group_path) @string |
| 225 |
file: (curly_group_path) @string) |
| 226 |
|
| 227 |
(bibtex_include |
| 228 |
command: _ @keyword.control.import |
| 229 |
path: (curly_group_path) @string) |
| 230 |
(biblatex_include |
| 231 |
"\\addbibresource" @keyword.control.import |
| 232 |
glob: (curly_group_glob_pattern) @string.regexp) |
| 233 |
|
| 234 |
(graphics_include |
| 235 |
command: _ @keyword.control.import |
| 236 |
path: (curly_group_path) @string) |
| 237 |
(tikz_library_import |
| 238 |
command: _ @keyword.control.import |
| 239 |
paths: (curly_group_path_list) @string) |