Skip to content

Commit 0f4465e

Browse files
authored
Merge pull request #59 from ivanbratovic/dockerfile-update
Add 'AS' keyword to Dockerfile
2 parents 85a601f + 764a007 commit 0f4465e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile.nanorc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
## Syntax highlighting for Dockerfiles
22
syntax "Dockerfile" "Dockerfile[^/]*$" "\.dockerfile$"
33

4-
## Keywords
4+
## AS keyword
5+
icolor red start="^FROM[[:space:]]" end="([[:space:]]AS[[:space:]]|$)"
6+
icolor white "^FROM[[:space:]]*[^[:space:]]+[[:space:]]*"
7+
8+
## Other keywords
59
icolor red "^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)[[:space:]]"
610

711
## Brackets & parenthesis

0 commit comments

Comments
 (0)