diff --git a/fish.nanorc b/fish.nanorc index 85fa258..081ee9a 100644 --- a/fish.nanorc +++ b/fish.nanorc @@ -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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" diff --git a/html.nanorc b/html.nanorc index 4f225d8..77a04dd 100644 --- a/html.nanorc +++ b/html.nanorc @@ -1,6 +1,6 @@ ## HTML syntax highlighting rules for Nano -syntax "HTML" "\.html?(.j2)?$" +syntax "HTML" "\.html?(.j2)?(.twig)?$" magic "HTML document" comment "" diff --git a/sh.nanorc b/sh.nanorc index 4eeb07d..0fe1cb2 100644 --- a/sh.nanorc +++ b/sh.nanorc @@ -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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" diff --git a/twig.nanorc b/twig.nanorc new file mode 120000 index 0000000..c18f7cb --- /dev/null +++ b/twig.nanorc @@ -0,0 +1 @@ +html.nanorc \ No newline at end of file diff --git a/xml.nanorc b/xml.nanorc index 8ad5a32..005032a 100644 --- a/xml.nanorc +++ b/xml.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 "<[^> ]+"