Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/serialhex/nano-highlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Winegar <jameswinegar@users.noreply.github.com>2016-11-12 18:18:32 +0300
committerGitHub <noreply@github.com>2016-11-12 18:18:32 +0300
commit8d6d6b87a01ca17e749325ec8c3dafffdd84a2e2 (patch)
treeb0a5ace06ed6d4974a5856221ada180a7fba2e5c /Dockerfile.nanorc
parentb8943fb584801c9acc920eabcfef31befe0f11ba (diff)
Create Dockerfile.nanorc
https://github.com/mbentley/Dockerfile.nanorc
Diffstat (limited to 'Dockerfile.nanorc')
-rw-r--r--Dockerfile.nanorc26
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile.nanorc b/Dockerfile.nanorc
new file mode 100644
index 0000000..80e56df
--- /dev/null
+++ b/Dockerfile.nanorc
@@ -0,0 +1,26 @@
+## Syntax highlighting for Dockerfiles
+syntax "Dockerfile" "Dockerfile[^/]*$"
+
+## Keywords
+icolor red "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD)[[:space:]]"
+
+## Brackets & parenthesis
+color brightgreen "(\(|\)|\[|\])"
+
+## Double ampersand
+color brightmagenta "&&"
+
+## Comments
+icolor cyan "^[[:space:]]*#.*$"
+
+## Blank space at EOL
+color ,green "[[:space:]]+$"
+
+## Strings, single-quoted
+color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
+
+## Strings, double-quoted
+color brightwhite ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
+
+## Single and double quotes
+color brightyellow "('|\")"