Skip to content

Commit f83f795

Browse files
authored
Update Dockerfile-bash.sublime-syntax
1 parent 832a30d commit f83f795

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Syntaxes/Dockerfile-bash.sublime-syntax

+10
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ variables:
1616

1717
contexts:
1818
main:
19+
- include: comments
1920
- match: ^(?i:arg)\s
2021
scope: keyword.control.dockerfile
2122
- include: from
@@ -47,6 +48,7 @@ contexts:
4748
set: [body, optional-as, expect-container-tag]
4849

4950
body:
51+
- include: comments
5052
- include: directives
5153
- include: from
5254
- include: invalid
@@ -79,3 +81,11 @@ contexts:
7981
invalid:
8082
- match: ^[^A-Z\n](.*)$
8183
scope: invalid.illegal.dockerfile
84+
85+
comments:
86+
- match: ^(\s*)((#).*$\n?)
87+
comment: comment.line
88+
captures:
89+
1: punctuation.whitespace.comment.leading.dockerfile
90+
2: comment.dockerfile
91+
3: punctuation.definition.comment.dockerfile

0 commit comments

Comments
 (0)