mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
3b48b83389
- Lots of syntax regex are poorly written and did not ends with a '$', which caused them competing with other regex rules.
11 lines
308 B
Plaintext
11 lines
308 B
Plaintext
## 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:]]+$"
|