-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.sublime-syntax
47 lines (47 loc) · 1.54 KB
/
Dockerfile.sublime-syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: Dockerfile
file_extensions:
- Dockerfile
scope: source.dockerfile
contexts:
main:
- match: \\.
scope: constant.character.escaped.dockerfile
- match: ^\s*(?:(ONBUILD)\s+)?(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)\s
captures:
1: keyword.control.dockerfile
2: keyword.other.special-method.dockerfile
- match: ^\s*(?:(ONBUILD)\s+)?(CMD|ENTRYPOINT)\s
captures:
1: keyword.operator.dockerfile
2: keyword.other.special-method.dockerfile
- match: '"'
captures:
1: punctuation.definition.string.begin.dockerfile
push:
- meta_scope: string.quoted.double.dockerfile
- match: '"'
captures:
1: punctuation.definition.string.end.dockerfile
pop: true
- match: \\.
scope: constant.character.escaped.dockerfile
- match: "'"
captures:
1: punctuation.definition.string.begin.dockerfile
push:
- meta_scope: string.quoted.single.dockerfile
- match: "'"
captures:
1: punctuation.definition.string.end.dockerfile
pop: true
- match: \\.
scope: constant.character.escaped.dockerfile
- match: ^(\s*)((#).*$\n?)
comment: comment.line
captures:
1: punctuation.whitespace.comment.leading.dockerfile
2: comment.line.number-sign.dockerfile
3: punctuation.definition.comment.dockerfile