From f91ebbbccd173903cf480f26c4469a76bc5c0d80 Mon Sep 17 00:00:00 2001 From: Ondrej Esler Date: Wed, 13 Jun 2018 16:15:43 +0200 Subject: [PATCH] add .env file syntax highlight --- dotenv.nanorc | 10 ++++++++++ nanorc | 1 + 2 files changed, 11 insertions(+) create mode 100644 dotenv.nanorc diff --git a/dotenv.nanorc b/dotenv.nanorc new file mode 100644 index 0000000..3f21b9b --- /dev/null +++ b/dotenv.nanorc @@ -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:]]+$" diff --git a/nanorc b/nanorc index adf7049..50006ba 100644 --- a/nanorc +++ b/nanorc @@ -13,6 +13,7 @@ include "~/.nano/csharp.nanorc" include "~/.nano/css.nanorc" include "~/.nano/cython.nanorc" include "~/.nano/dot.nanorc" +include "~/.nano/dotenv.nanorc" include "~/.nano/email.nanorc" include "~/.nano/Dockerfile.nanorc" include "~/.nano/fish.nanorc"