Merge pull request #471 from clemenscorny/master

Update tex.micro and vhdl.micro
This commit is contained in:
Zachary Yedidia 2016-12-01 16:28:18 -05:00 committed by GitHub
commit ccff712d83
3 changed files with 27 additions and 13 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\}"

View file

@ -5,12 +5,12 @@ syntax "vhdl" "\.vhdl?$"
color type (i) "\b(string|integer|natural|positive|(un)?signed|std_u?logic(_vector)?|bit(_vector)?|boolean|u?x01z?|array|range)\b"
## identifiers (component-, library-names etc.)
color identifier (i) "library[ ]+[a-zA-Z_0-9]+"
color identifier (i) "use[ ]+[a-zA-Z_0-9\.]+"
color identifier (i) "component[ ]+[a-zA-Z_0-9]+"
color identifier (i) "(architecture|configuration)[ ]+[a-zA-Z_0-9]+[ ]+of[ ]+[a-zA-Z_0-9]+"
color identifier (i) "(entity|package)[ ]+[a-zA-Z_0-9]+[ ]+is"
color identifier (i) "end[ ]+((architecture|entity|component|process|package|generate)[ ]+)?[a-zA-Z_0-9]+"
color identifier (i) "library[[:space:]]+[a-zA-Z_0-9]+"
color identifier (i) "use[[:space:]]+[a-zA-Z_0-9\.]+"
color identifier (i) "component[[:space:]]+[a-zA-Z_0-9]+"
color identifier (i) "(architecture|configuration)[[:space:]]+[a-zA-Z_0-9]+[[:space:]]+of[[:space:]]+[a-zA-Z_0-9]+"
color identifier (i) "(entity|package)[[:space:]]+[a-zA-Z_0-9]+[[:space:]]+is"
color identifier (i) "end[[:space:]]+((architecture|entity|component|process|package|generate)[[:space:]]+)?[a-zA-Z_0-9]+"
## reserved words
color statement (i) "\b(abs|access|after|alias|all|and|architecture|assert|attribute)\b"