mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-05 16:07:54 +03:00
29 lines
715 B
YAML
29 lines
715 B
YAML
filetype: tex
|
|
|
|
detect:
|
|
filename: "\\.tex$|\\.bib$|\\.cls$"
|
|
|
|
rules:
|
|
# colorize the identifiers of {<identifier>} and [<identifier>]
|
|
- identifier:
|
|
start: "\\{"
|
|
end: "\\}"
|
|
- identifier:
|
|
start: "\\["
|
|
end: "\\]"
|
|
# 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_]+"
|
|
- statement: "\\\\%"
|
|
# comments
|
|
- comment:
|
|
start: "[^\\\\]%|^%"
|
|
end: "$"
|
|
- comment:
|
|
start: "\\\\begin\\{comment\\}"
|
|
end: "\\\\end\\{comment\\}"
|