]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/tex.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / tex.yaml
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: []