micro/runtime/syntax/tex.micro

22 lines
558 B
Text
Raw Normal View History

## TeX
syntax "tex" "\.tex$" "bib" "\.bib$" "cls" "\.cls$"
## colorize the identifiers of {<identifier>} and [<identifier>]
color identifier start="\{" end="\}"
color identifier start="\[" end="\]"
## numbers
color constant.number "\b[0-9]+(\.[0-9]+)?([[:space:]](pt|mm|cm|in|ex|em|bp|pc|dd|cc|nd|nc|sp))?\b"
## let brackets be colored on their own.
color symbol.brackets "[{}\[\]]"
color special "[&\\]"
## macros
color identifier.macro "\\@?[a-zA-Z_]+"
## commments
color comment "%.*"
color comment start="\\begin\{comment\}" end="\\end\{comment\}"