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:
authorPiterden <efremov.a.denis@gmail.com>2017-05-04 04:50:16 +0300
committerPiterden <efremov.a.denis@gmail.com>2017-05-04 04:50:16 +0300
commit0babcf046b44a7b9701ccd4fb96b99984502a9d8 (patch)
tree136f430c63f5e1fc65adf7833c564d58199a19e3
parentac1db238821f13a32d492ea3b544fca5cfcfa799 (diff)
parentf0943e94d28eb17d66df641b1a696c2756aab572 (diff)
Merge branch 'master' of https://github.com/serialhex/nano-highlight
-rw-r--r--config2.nanorc2
-rw-r--r--dotenv.nanorc22
2 files changed, 23 insertions, 1 deletions
diff --git a/config2.nanorc b/config2.nanorc
index 7b160b4..3ac98ac 100644
--- a/config2.nanorc
+++ b/config2.nanorc
@@ -1,4 +1,4 @@
-syntax "config2" "(\.|/)env$" "(\.|/)server.$" "hosts" "gpm" "local.*$" "bootsplash" "crypto-loop"
+syntax "config2" "(\.|/)server.$" "hosts" "gpm" "local.*$" "bootsplash" "crypto-loop"
color red "/.*$" "http\:\/\/.*$"
color white ":unscaled"
color blue "setenv|export"
diff --git a/dotenv.nanorc b/dotenv.nanorc
new file mode 100644
index 0000000..374cd17
--- /dev/null
+++ b/dotenv.nanorc
@@ -0,0 +1,22 @@
+# Supports `.env` files
+syntax "dotenv" "\/\.env(\.old|\.bak|~)?$"
+
+## Keys
+color cyan "^\s*[A-Z0-9_]+"
+
+## Values
+color brightyellow "=.*$"
+color ,red "[\'\"].*$"
+color brightwhite "[\'\"].*[\'\"]$"
+
+## Equal sign
+color green "="
+
+## Booleans
+color brightmagenta "(TRUE|true|FALSE|false)\s*($|;)"
+
+## Comments
+color brightyellow ";.*$"
+
+## Spaces in front of tabs.
+color ,red " + +"