Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/serialhex/nano-highlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pennebaker <andrew.pennebaker@gmail.com>2014-05-29 23:09:34 +0400
committerAndrew Pennebaker <andrew.pennebaker@gmail.com>2014-05-29 23:09:34 +0400
commit45ecbc6cba20caace3c39ae4f4889d4e6352cbaa (patch)
tree54a0a2d89210fddb81b6e3e2a3e8327190a382e8 /sh.nanorc
parent5f887c7e87a615f2cc1489670dbbcaab51e4752d (diff)
added sh.nanorc for some nano installs without one
Diffstat (limited to 'sh.nanorc')
-rw-r--r--sh.nanorc13
1 files changed, 13 insertions, 0 deletions
diff --git a/sh.nanorc b/sh.nanorc
new file mode 100644
index 0000000..13af71b
--- /dev/null
+++ b/sh.nanorc
@@ -0,0 +1,13 @@
+## Here is an example for Bourne shell scripts.
+##
+syntax "sh" "\.sh$"
+icolor brightgreen "^[0-9A-Z_]+\(\)"
+color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
+color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
+color green "-[Ldefgruwx]\>"
+color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
+color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
+icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
+color cyan "(^|[[:space:]])#.*$"
+color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
+color ,green "[[:space:]]+$" \ No newline at end of file