mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-16 22:10:26 +00:00
convert tex.micro to use micro's colorscheme feature
This commit is contained in:
parent
0357ec88d5
commit
069df5ef0b
2 changed files with 21 additions and 7 deletions
|
|
@ -32,6 +32,7 @@ Here is a list of the files that have been converted to properly use colorscheme
|
|||
* ruby
|
||||
* sh
|
||||
* git
|
||||
* tex
|
||||
|
||||
# License
|
||||
|
||||
|
|
|
|||
|
|
@ -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\}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue