2016-12-01 20:00:02 +00:00
|
|
|
## TeX
|
2016-08-25 00:15:36 +00:00
|
|
|
syntax "tex" "\.tex$" "bib" "\.bib$" "cls" "\.cls$"
|
2016-12-01 20:00:02 +00:00
|
|
|
|
|
|
|
|
## 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"
|
|
|
|
|
|
2017-03-01 14:30:35 +00:00
|
|
|
## let brackets be colored on their own.
|
|
|
|
|
color symbol.brackets "[{}\[\]]"
|
2016-12-01 20:00:02 +00:00
|
|
|
|
|
|
|
|
color special "[&\\]"
|
|
|
|
|
|
|
|
|
|
## macros
|
2017-03-01 14:30:35 +00:00
|
|
|
color identifier.macro "\\@?[a-zA-Z_]+"
|
2016-12-01 20:00:02 +00:00
|
|
|
|
|
|
|
|
## commments
|
|
|
|
|
color comment "%.*"
|
|
|
|
|
color comment start="\\begin\{comment\}" end="\\end\{comment\}"
|