syntaxes: condense and/or correct some extension regexes
parent
4d232a4aef
commit
cdd637d69f
|
@ -1,6 +1,6 @@
|
||||||
## Here is an example for C/C++.
|
## Here is an example for C/C++.
|
||||||
|
|
||||||
syntax c "\.(c(c|pp|xx|\+\+)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
|
syntax c "\.([ch](pp|xx)?|C|cc|c\+\+|H|hh|ii?)$"
|
||||||
magic "^(C|C\+\+) (source|program)"
|
magic "^(C|C\+\+) (source|program)"
|
||||||
comment "//"
|
comment "//"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Colouring for Changelogs.
|
## Colouring for Changelogs.
|
||||||
|
|
||||||
syntax changelog "Change[Ll]og.*"
|
syntax changelog "Change[Ll]og[^/]*$"
|
||||||
|
|
||||||
# Author lines.
|
# Author lines.
|
||||||
color green "^(19|20).*$"
|
color green "^(19|20).*$"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Here is an example for apt's sources.list.
|
## Here is an example for apt's sources.list.
|
||||||
|
|
||||||
syntax sources.list "sources\.list(~|\.old|\.save)?$" "sources\.list\.d/.*\.list(~|\.old|\.save)?$"
|
syntax sources.list "sources\.list(\.d/.*\.list)?(~|\.old|\.save)?$"
|
||||||
comment "#"
|
comment "#"
|
||||||
|
|
||||||
# Coloring the deb lines, working from tail to head. First the
|
# Coloring the deb lines, working from tail to head. First the
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Here is an example for groff.
|
## Here is an example for groff.
|
||||||
|
|
||||||
syntax groff "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
|
syntax groff "(/tmac\.[^/]+$|\.(m[ems]|rof|tmac)$)"
|
||||||
comment ".\""
|
comment ".\""
|
||||||
|
|
||||||
# The argument of .ds or .nr
|
# The argument of .ds or .nr
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Here is an example for Makefiles.
|
## Here is an example for Makefiles.
|
||||||
|
|
||||||
syntax makefile "Makefile[^/]*$" "\.(make|mk)$"
|
syntax makefile "(Makefile[^/]*$|\.(make|mk)$)"
|
||||||
magic "makefile script"
|
magic "makefile script"
|
||||||
comment "#"
|
comment "#"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
## NOTE: Rules are applied in order: later rules re-colorize matching text.
|
## NOTE: Rules are applied in order: later rules re-colorize matching text.
|
||||||
|
|
||||||
syntax rust "\.rs"
|
syntax rust "\.(rlib|rs)$"
|
||||||
comment "//"
|
comment "//"
|
||||||
|
|
||||||
# Function definitions
|
# Function definitions
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Syntax highlighting for RPM spec files.
|
## Syntax highlighting for RPM spec files.
|
||||||
|
|
||||||
syntax spec "\.(spec$|spec\.*)"
|
syntax spec "\.spec(\.[^/]+)?$"
|
||||||
comment "#"
|
comment "#"
|
||||||
|
|
||||||
# Main tags.
|
# Main tags.
|
||||||
|
|
Loading…
Reference in New Issue