convert tex.micro to use micro's colorscheme feature

This commit is contained in:
Clemens Korner 2016-12-01 21:00:02 +01:00
parent 0357ec88d5
commit 069df5ef0b
2 changed files with 21 additions and 7 deletions

View file

@ -32,6 +32,7 @@ Here is a list of the files that have been converted to properly use colorscheme
* ruby
* sh
* git
* tex
# License

View file

@ -1,8 +1,21 @@
## Here is a short example for TeX files.
##
## TeX
syntax "tex" "\.tex$" "bib" "\.bib$" "cls" "\.cls$"
color yellow "\$[^$]*\$"
green (i) "\\.|\\[A-Z]*"
color magenta "[{}]"
color blue "%.*"
color blue start="\\begin\{comment\}" end="\\end\{comment\}"
## 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 have the default color again
color default "[{}\[\]]"
color special "[&\\]"
## macros
color statement "\\@?[a-zA-Z_]+"
## commments
color comment "%.*"
color comment start="\\begin\{comment\}" end="\\end\{comment\}"