Skip to content

Commit

Permalink
Fixed inline comments and newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
andyneff committed Sep 17, 2016
1 parent c70ee9e commit 9f6b430
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ file_extensions:
scope: source.dockerfile

variables:
build_directive: (?:(ONBUILD)\s+)?(ADD|ARG|COPY|ENV|EXPOSE|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)
noonbuild_directive: (FROM|MAINTAINER)
build_directive: (?:(ONBUILD)\s+)?(ADD|ARG|COPY|ENV|EXPOSE|HEALTHCHECK|LABEL|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)
runtime_directive: (?:(ONBUILD)\s+)?(CMD|ENTRYPOINT)

contexts:
main:
- include: comments
- match: '^FROM\s'
- match: '^\s*{{noonbuild_directive}}\s'
captures:
0: keyword.control.dockerfile
push: body
Expand All @@ -36,7 +37,9 @@ contexts:
push: args

args:
- match: ^\s*$
- match: \\\s+$
- include: comments
- match: \n
pop: true
- match: '"'
Expand All @@ -50,6 +53,7 @@ contexts:

double_quote_string:
- meta_scope: string.quoted.double.dockerfile
- match: ^\s*$
- match: \\\s+$
- match: \n
set: invalid
Expand All @@ -62,6 +66,7 @@ contexts:

single_quote_string:
- meta_scope: string.quoted.single.dockerfile
- match: ^\s*$
- match: \\\s+$
- match: \n
set: invalid
Expand Down

0 comments on commit 9f6b430

Please sign in to comment.