Skip to content

Commit eb24511

Browse files
authored
Merge pull request #9 from asbjornenge/escaped-char-in-args
Fix escaped char in directive args
2 parents e14f3ed + df4c240 commit eb24511

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Dockerfile.sublime-syntax

+8-5
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,15 @@ contexts:
3535
1: keyword.other.special-method.dockerfile
3636
push: args
3737

38+
escaped-char:
39+
- match: \\.
40+
scope: constant.character.escaped.dockerfile
41+
3842
args:
43+
- include: comments
44+
- include: escaped-char
3945
- match: ^\s*$
4046
- match: \\\s+$
41-
- include: comments
4247
- match: \n
4348
pop: true
4449
- match: '"'
@@ -52,25 +57,23 @@ contexts:
5257

5358
double_quote_string:
5459
- meta_scope: string.quoted.double.dockerfile
60+
- include: escaped-char
5561
- match: ^\s*$
5662
- match: \\\s+$
5763
- match: \n
5864
set: invalid
59-
- match: \\.
60-
scope: constant.character.escaped.dockerfile
6165
- match: '"'
6266
captures:
6367
0: punctuation.definition.string.end.dockerfile
6468
pop: true
6569

6670
single_quote_string:
6771
- meta_scope: string.quoted.single.dockerfile
72+
- include: escaped-char
6873
- match: ^\s*$
6974
- match: \\\s+$
7075
- match: \n
7176
set: invalid
72-
- match: \\.
73-
scope: constant.character.escaped.dockerfile
7477
- match: "'"
7578
captures:
7679
0: punctuation.definition.string.end.dockerfile

0 commit comments

Comments
 (0)