mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
* Syntax Files: Detect more files for highlighting
This commit is contained in:
parent
c705a50603
commit
391ed68163
5 changed files with 6 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
## Here is an example for Fish shell scripts.
|
||||
##
|
||||
syntax "Fish" "\.fish$"
|
||||
header "^#!.*/(env +)?fish( |$)"
|
||||
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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
## HTML syntax highlighting rules for Nano
|
||||
|
||||
syntax "HTML" "\.html?(.j2)?$"
|
||||
syntax "HTML" "\.html?(.j2)?(.twig)?$"
|
||||
magic "HTML document"
|
||||
comment "<!--|-->"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
## 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\..+$"
|
||||
header "^#!.*/(env +)?(ba)?sh( |$)"
|
||||
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|da|a)?sh( |$)"
|
||||
## keywords:
|
||||
color green "\<(case|do|done|elif|else|esac|fi|for|function|if|in|select|then|time|until|while)\>"
|
||||
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
||||
|
|
|
|||
1
twig.nanorc
Symbolic link
1
twig.nanorc
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
html.nanorc
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
## Here is an example for xml files.
|
||||
##
|
||||
|
||||
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng)$"
|
||||
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|mei|musicxml)$"
|
||||
color white "^.+$"
|
||||
color green start="<" end=">"
|
||||
color cyan "<[^> ]+"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue