diff options
author | Denis Efremov <efremov.a.denis@gmail.com> | 2017-01-11 13:23:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-11 13:23:45 +0300 |
commit | a9ed8154301ce59e5595a34aaab67cfff5d7abbe (patch) | |
tree | 3bdc9230fb1088ef8e3b6caf20626f75ea38bc7b | |
parent | 96b9068b641c353ec57b494496bd5cc0b01cdeac (diff) |
Added supports of DotEnv files
-rw-r--r-- | dotenv.nanorc | 22 |
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 " + +" |