mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
convert tex.micro to use micro's colorscheme feature
This commit is contained in:
@@ -32,6 +32,7 @@ Here is a list of the files that have been converted to properly use colorscheme
|
|||||||
* ruby
|
* ruby
|
||||||
* sh
|
* sh
|
||||||
* git
|
* git
|
||||||
|
* tex
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,21 @@
|
|||||||
## Here is a short example for TeX files.
|
## TeX
|
||||||
##
|
|
||||||
syntax "tex" "\.tex$" "bib" "\.bib$" "cls" "\.cls$"
|
syntax "tex" "\.tex$" "bib" "\.bib$" "cls" "\.cls$"
|
||||||
color yellow "\$[^$]*\$"
|
|
||||||
green (i) "\\.|\\[A-Z]*"
|
## colorize the identifiers of {<identifier>} and [<identifier>]
|
||||||
color magenta "[{}]"
|
color identifier start="\{" end="\}"
|
||||||
color blue "%.*"
|
color identifier start="\[" end="\]"
|
||||||
color blue start="\\begin\{comment\}" end="\\end\{comment\}"
|
|
||||||
|
## 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\}"
|
||||||
|
|||||||
Reference in New Issue
Block a user