PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.13.0
Code Block Pro – Beautiful Syntax Highlighting v1.13.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / languages / docker.tmLanguage.json

docker.tmLanguage.json in Code Block Pro – Beautiful Syntax Highlighting 1.13.0, at build/shiki/languages/docker.tmLanguage.json

103 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "information_for_contributors": [
3 "This file has been converted from https://github.com/moby/moby/blob/master/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage",
4 "If you want to provide a fix or improvement, please create a pull request against the original repository.",
5 "Once accepted there, we are happy to receive an update request."
6 ],
7 "version": "https://github.com/moby/moby/commit/abd39744c6f3ed854500e423f5fabf952165161f",
8 "name": "docker",
9 "scopeName": "source.dockerfile",
10 "patterns": [
11 {
12 "captures": {
13 "1": {
14 "name": "keyword.other.special-method.dockerfile"
15 },
16 "2": {
17 "name": "keyword.other.special-method.dockerfile"
18 }
19 },
20 "match": "^\\s*\\b(?i:(FROM))\\b.*?\\b(?i:(AS))\\b"
21 },
22 {
23 "captures": {
24 "1": {
25 "name": "keyword.control.dockerfile"
26 },
27 "2": {
28 "name": "keyword.other.special-method.dockerfile"
29 }
30 },
31 "match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\s"
32 },
33 {
34 "captures": {
35 "1": {
36 "name": "keyword.operator.dockerfile"
37 },
38 "2": {
39 "name": "keyword.other.special-method.dockerfile"
40 }
41 },
42 "match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(CMD|ENTRYPOINT))\\s"
43 },
44 {
45 "begin": "\"",
46 "beginCaptures": {
47 "1": {
48 "name": "punctuation.definition.string.begin.dockerfile"
49 }
50 },
51 "end": "\"",
52 "endCaptures": {
53 "1": {
54 "name": "punctuation.definition.string.end.dockerfile"
55 }
56 },
57 "name": "string.quoted.double.dockerfile",
58 "patterns": [
59 {
60 "match": "\\\\.",
61 "name": "constant.character.escaped.dockerfile"
62 }
63 ]
64 },
65 {
66 "begin": "'",
67 "beginCaptures": {
68 "1": {
69 "name": "punctuation.definition.string.begin.dockerfile"
70 }
71 },
72 "end": "'",
73 "endCaptures": {
74 "1": {
75 "name": "punctuation.definition.string.end.dockerfile"
76 }
77 },
78 "name": "string.quoted.single.dockerfile",
79 "patterns": [
80 {
81 "match": "\\\\.",
82 "name": "constant.character.escaped.dockerfile"
83 }
84 ]
85 },
86 {
87 "captures": {
88 "1": {
89 "name": "punctuation.whitespace.comment.leading.dockerfile"
90 },
91 "2": {
92 "name": "comment.line.number-sign.dockerfile"
93 },
94 "3": {
95 "name": "punctuation.definition.comment.dockerfile"
96 }
97 },
98 "comment": "comment.line",
99 "match": "^(\\s*)((#).*$\\n?)"
100 }
101 ]
102 }
103