|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
3 | 3 | <plist version="1.0"> |
4 | 4 | <dict> |
5 | | - <key>name</key> |
6 | | - <string>Dockerfile</string> |
7 | 5 | <key>fileTypes</key> |
8 | 6 | <array> |
9 | 7 | <string>Dockerfile</string> |
10 | 8 | </array> |
| 9 | + <key>name</key> |
| 10 | + <string>Dockerfile</string> |
11 | 11 | <key>patterns</key> |
12 | 12 | <array> |
13 | 13 | <dict> |
14 | | - <key>match</key> |
15 | | - <string>^\s*(ONBUILD\s+)?(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|USER|LABEL|WORKDIR|COPY)\s</string> |
16 | 14 | <key>captures</key> |
17 | 15 | <dict> |
18 | | - <key>0</key> |
| 16 | + <key>1</key> |
19 | 17 | <dict> |
20 | 18 | <key>name</key> |
21 | 19 | <string>keyword.control.dockerfile</string> |
22 | 20 | </dict> |
23 | | - <key>1</key> |
| 21 | + <key>2</key> |
24 | 22 | <dict> |
25 | 23 | <key>name</key> |
26 | 24 | <string>keyword.other.special-method.dockerfile</string> |
27 | 25 | </dict> |
28 | 26 | </dict> |
| 27 | + <key>match</key> |
| 28 | + <string>^\s*(?:(ONBUILD)\s+)?(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|USER|WORKDIR|COPY|LABEL)\s</string> |
29 | 29 | </dict> |
30 | 30 | <dict> |
31 | | - <key>match</key> |
32 | | - <string>^\s*(ONBUILD\s+)?(CMD|ENTRYPOINT)\s</string> |
33 | 31 | <key>captures</key> |
34 | 32 | <dict> |
35 | | - <key>0</key> |
| 33 | + <key>1</key> |
36 | 34 | <dict> |
37 | 35 | <key>name</key> |
38 | 36 | <string>keyword.operator.dockerfile</string> |
39 | 37 | </dict> |
40 | | - <key>1</key> |
| 38 | + <key>2</key> |
41 | 39 | <dict> |
42 | 40 | <key>name</key> |
43 | 41 | <string>keyword.other.special-method.dockerfile</string> |
44 | 42 | </dict> |
45 | 43 | </dict> |
| 44 | + <key>match</key> |
| 45 | + <string>^\s*(?:(ONBUILD)\s+)?(CMD|ENTRYPOINT)\s</string> |
46 | 46 | </dict> |
47 | 47 | <dict> |
48 | 48 | <key>begin</key> |
49 | 49 | <string>"</string> |
| 50 | + <key>beginCaptures</key> |
| 51 | + <dict> |
| 52 | + <key>1</key> |
| 53 | + <dict> |
| 54 | + <key>name</key> |
| 55 | + <string>punctuation.definition.string.begin.dockerfile</string> |
| 56 | + </dict> |
| 57 | + </dict> |
50 | 58 | <key>end</key> |
51 | 59 | <string>"</string> |
| 60 | + <key>endCaptures</key> |
| 61 | + <dict> |
| 62 | + <key>1</key> |
| 63 | + <dict> |
| 64 | + <key>name</key> |
| 65 | + <string>punctuation.definition.string.end.dockerfile</string> |
| 66 | + </dict> |
| 67 | + </dict> |
52 | 68 | <key>name</key> |
53 | 69 | <string>string.quoted.double.dockerfile</string> |
54 | 70 | <key>patterns</key> |
|
64 | 80 | <dict> |
65 | 81 | <key>begin</key> |
66 | 82 | <string>'</string> |
| 83 | + <key>beginCaptures</key> |
| 84 | + <dict> |
| 85 | + <key>1</key> |
| 86 | + <dict> |
| 87 | + <key>name</key> |
| 88 | + <string>punctuation.definition.string.begin.dockerfile</string> |
| 89 | + </dict> |
| 90 | + </dict> |
67 | 91 | <key>end</key> |
68 | 92 | <string>'</string> |
| 93 | + <key>endCaptures</key> |
| 94 | + <dict> |
| 95 | + <key>1</key> |
| 96 | + <dict> |
| 97 | + <key>name</key> |
| 98 | + <string>punctuation.definition.string.end.dockerfile</string> |
| 99 | + </dict> |
| 100 | + </dict> |
69 | 101 | <key>name</key> |
70 | 102 | <string>string.quoted.single.dockerfile</string> |
71 | 103 | <key>patterns</key> |
|
79 | 111 | </array> |
80 | 112 | </dict> |
81 | 113 | <dict> |
| 114 | + <key>captures</key> |
| 115 | + <dict> |
| 116 | + <key>1</key> |
| 117 | + <dict> |
| 118 | + <key>name</key> |
| 119 | + <string>punctuation.whitespace.comment.leading.dockerfile</string> |
| 120 | + </dict> |
| 121 | + <key>2</key> |
| 122 | + <dict> |
| 123 | + <key>name</key> |
| 124 | + <string>comment.line.number-sign.dockerfile</string> |
| 125 | + </dict> |
| 126 | + <key>3</key> |
| 127 | + <dict> |
| 128 | + <key>name</key> |
| 129 | + <string>punctuation.definition.comment.dockerfile</string> |
| 130 | + </dict> |
| 131 | + </dict> |
| 132 | + <key>comment</key> |
| 133 | + <string>comment.line</string> |
82 | 134 | <key>match</key> |
83 | | - <string>^\s*#.*$</string> |
84 | | - <key>name</key> |
85 | | - <string>comment.block.dockerfile</string> |
| 135 | + <string>^(\s*)((#).*$\n?)</string> |
86 | 136 | </dict> |
87 | 137 | </array> |
88 | 138 | <key>scopeName</key> |
|
0 commit comments