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:
authorDenis Efremov <efremov.a.denis@gmail.com>2017-01-11 13:23:45 +0300
committerGitHub <noreply@github.com>2017-01-11 13:23:45 +0300
commita9ed8154301ce59e5595a34aaab67cfff5d7abbe (patch)
tree3bdc9230fb1088ef8e3b6caf20626f75ea38bc7b
parent96b9068b641c353ec57b494496bd5cc0b01cdeac (diff)
Added supports of DotEnv files
-rw-r--r--dotenv.nanorc22
1 files changed, 22 insertions, 0 deletions
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 " + +"