add .env file syntax highlight

This commit is contained in:
Ondrej Esler 2018-06-13 16:15:43 +02:00
parent 4af9726092
commit f91ebbbccd
2 changed files with 11 additions and 0 deletions

10
dotenv.nanorc Normal file
View file

@ -0,0 +1,10 @@
## Syntax highlight for .env files, eg. https://symfony.com/doc/current/components/dotenv.html
##
## Derived from sh.nanorc
##
syntax "dotenv" "\.env" "\.env\..+"
color green "(\(|\)|\$|=)"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$"