| 1 |
filetype: tex |
| 2 |
|
| 3 |
detect: |
| 4 |
filename: "\\.tex$|\\.bib$|\\.cls$" |
| 5 |
|
| 6 |
rules: |
| 7 |
# colorize the identifiers of {<identifier>} and [<identifier>] |
| 8 |
- identifier: |
| 9 |
start: "\\{" |
| 10 |
end: "\\}" |
| 11 |
rules: [] |
| 12 |
- identifier: |
| 13 |
start: "\\[" |
| 14 |
end: "\\]" |
| 15 |
rules: [] |
| 16 |
# numbers |
| 17 |
- constant.number: "\\b[0-9]+(\\.[0-9]+)?([[:space:]](pt|mm|cm|in|ex|em|bp|pc|dd|cc|nd|nc|sp))?\\b" |
| 18 |
# let brackets have the default color again |
| 19 |
- default: "[{}\\[\\]]" |
| 20 |
- special: "[&\\\\]" |
| 21 |
# macros |
| 22 |
- statement: "\\\\@?[a-zA-Z_]+" |
| 23 |
- statement: "\\\\%" |
| 24 |
# comments |
| 25 |
- comment: |
| 26 |
start: "[^\\\\]%|^%" |
| 27 |
end: "$" |
| 28 |
rules: [] |
| 29 |
- comment: |
| 30 |
start: "\\\\begin\\{comment\\}" |
| 31 |
end: "\\\\end\\{comment\\}" |
| 32 |
rules: [] |