mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 08:35:39 +01:00
Merge pull request #176 from esler/add_dotenv_syntax
add .env file syntax highlight
This commit is contained in:
commit
e6692994c7
10
dotenv.nanorc
Normal file
10
dotenv.nanorc
Normal 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:]]+$"
|
1
nanorc
1
nanorc
@ -13,6 +13,7 @@ include "~/.nano/csharp.nanorc"
|
|||||||
include "~/.nano/css.nanorc"
|
include "~/.nano/css.nanorc"
|
||||||
include "~/.nano/cython.nanorc"
|
include "~/.nano/cython.nanorc"
|
||||||
include "~/.nano/dot.nanorc"
|
include "~/.nano/dot.nanorc"
|
||||||
|
include "~/.nano/dotenv.nanorc"
|
||||||
include "~/.nano/email.nanorc"
|
include "~/.nano/email.nanorc"
|
||||||
include "~/.nano/Dockerfile.nanorc"
|
include "~/.nano/Dockerfile.nanorc"
|
||||||
include "~/.nano/fish.nanorc"
|
include "~/.nano/fish.nanorc"
|
||||||
|
Loading…
Reference in New Issue
Block a user