mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
Merge pull request #268 from earboxer/morefiles
* Syntax Files: Detect more files for highlighting
This commit is contained in:
commit
12a814bb5b
2
c.nanorc
2
c.nanorc
|
@ -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?$" "\.(def)$"
|
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino"
|
||||||
magic "^(C|C\+\+) (source|program)"
|
magic "^(C|C\+\+) (source|program)"
|
||||||
comment "//"
|
comment "//"
|
||||||
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## Here is an example for css files.
|
## Here is an example for css files.
|
||||||
##
|
##
|
||||||
|
|
||||||
syntax "CSS" "\.(css|scss)$"
|
syntax "CSS" "\.(css|scss|less)$"
|
||||||
color brightred "."
|
color brightred "."
|
||||||
color brightyellow start="\{" end="\}"
|
color brightyellow start="\{" end="\}"
|
||||||
color brightwhite start=":" end="[;^\{]"
|
color brightwhite start=":" end="[;^\{]"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
## Here is an example for Fish shell scripts.
|
## Here is an example for Fish shell scripts.
|
||||||
##
|
##
|
||||||
syntax "Fish" "\.fish$"
|
syntax "Fish" "\.fish$"
|
||||||
|
header "^#!.*/(env +)?fish( |$)"
|
||||||
icolor brightgreen "^[0-9A-Z_]+\(\)"
|
icolor brightgreen "^[0-9A-Z_]+\(\)"
|
||||||
color green "\<(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\>"
|
color green "\<(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\>"
|
||||||
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## HTML syntax highlighting rules for Nano
|
## HTML syntax highlighting rules for Nano
|
||||||
|
|
||||||
syntax "HTML" "\.html?(.j2)?$"
|
syntax "HTML" "\.html?(.j2)?(.twig)?$"
|
||||||
magic "HTML document"
|
magic "HTML document"
|
||||||
comment "<!--|-->"
|
comment "<!--|-->"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## Here is an example for Bourne shell scripts.
|
## Here is an example for Bourne shell scripts.
|
||||||
##
|
##
|
||||||
syntax "SH" "\.sh$" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_login" "\.bash_logout" "\.bash_profile" "bash_profile" "\.profile" "revise\..+$"
|
syntax "SH" "\.sh$" "\.ash" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_login" "\.bash_logout" "\.bash_profile" "bash_profile" "\.profile" "revise\..+$"
|
||||||
header "^#!.*/(env +)?(ba)?sh( |$)"
|
header "^#!.*/(env +)?(ba|da|a)?sh( |$)"
|
||||||
magic "(POSIX|Bourne-Again) shell script.*text"
|
magic "(POSIX|Bourne-Again) shell script.*text"
|
||||||
comment "#"
|
comment "#"
|
||||||
|
|
||||||
|
|
1
twig.nanorc
Symbolic link
1
twig.nanorc
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
html.nanorc
|
|
@ -1,10 +1,11 @@
|
||||||
## Here is an example for xml files.
|
## Here is an example for xml files.
|
||||||
##
|
##
|
||||||
|
|
||||||
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng)$"
|
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$"
|
||||||
header "<\?xml.*version=.*\?>"
|
header "<\?xml.*version=.*\?>"
|
||||||
magic "(XML|SGML) (sub)?document"
|
magic "(XML|SGML) (sub)?document"
|
||||||
comment "<!--|-->"
|
comment "<!--|-->"
|
||||||
|
|
||||||
color white "^.+$"
|
color white "^.+$"
|
||||||
color green start="<" end=">"
|
color green start="<" end=">"
|
||||||
color cyan "<[^> ]+"
|
color cyan "<[^> ]+"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user