micro/runtime/syntax/tex.yaml

33 lines
785 B
YAML
Raw Normal View History

filetype: tex
detect:
2018-01-30 02:02:43 +03:00
filename: "\\.tex$|\\.bib$|\\.cls$"
rules:
# colorize the identifiers of {<identifier>} and [<identifier>]
- identifier:
start: "\\{"
end: "\\}"
rules: []
- identifier:
start: "\\["
end: "\\]"
rules: []
# numbers
- constant.number: "\\b[0-9]+(\\.[0-9]+)?([[:space:]](pt|mm|cm|in|ex|em|bp|pc|dd|cc|nd|nc|sp))?\\b"
# let brackets have the default color again
- default: "[{}\\[\\]]"
- special: "[&\\\\]"
# macros
- statement: "\\\\@?[a-zA-Z_]+"
2019-11-29 14:05:54 +03:00
- statement: "\\\\%"
# comments
- comment:
2019-11-29 14:05:54 +03:00
start: "[^\\\\]%"
end: "$"
rules: []
- comment:
start: "\\\\begin\\{comment\\}"
end: "\\\\end\\{comment\\}"
rules: []