1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-01 07:10:00 +01:00
nanorc/dotenv.nanorc
davidhcefx b5b285fbf9 Force all syntax regex to ends with $
- Lots of syntax regex are poorly written and did not ends with a '$',
   which caused them competing with other regex rules.
2023-04-12 15:13:33 +08:00

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:]]+$"