Path: blob/main/extensions/docker/syntaxes/docker.tmLanguage.json
3314 views
{1"information_for_contributors": [2"This file has been converted from https://github.com/moby/moby/blob/master/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage",3"If you want to provide a fix or improvement, please create a pull request against the original repository.",4"Once accepted there, we are happy to receive an update request."5],6"version": "https://github.com/moby/moby/commit/c2029cb2574647e4bc28ed58486b8e85883eedb9",7"name": "Dockerfile",8"scopeName": "source.dockerfile",9"patterns": [10{11"captures": {12"1": {13"name": "keyword.other.special-method.dockerfile"14},15"2": {16"name": "keyword.other.special-method.dockerfile"17}18},19"match": "^\\s*\\b(?i:(FROM))\\b.*?\\b(?i:(AS))\\b"20},21{22"captures": {23"1": {24"name": "keyword.control.dockerfile"25},26"2": {27"name": "keyword.other.special-method.dockerfile"28}29},30"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\s"31},32{33"captures": {34"1": {35"name": "keyword.operator.dockerfile"36},37"2": {38"name": "keyword.other.special-method.dockerfile"39}40},41"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(CMD|ENTRYPOINT))\\s"42},43{44"include": "#string-character-escape"45},46{47"begin": "\"",48"beginCaptures": {49"1": {50"name": "punctuation.definition.string.begin.dockerfile"51}52},53"end": "\"",54"endCaptures": {55"1": {56"name": "punctuation.definition.string.end.dockerfile"57}58},59"name": "string.quoted.double.dockerfile",60"patterns": [61{62"include": "#string-character-escape"63}64]65},66{67"begin": "'",68"beginCaptures": {69"1": {70"name": "punctuation.definition.string.begin.dockerfile"71}72},73"end": "'",74"endCaptures": {75"1": {76"name": "punctuation.definition.string.end.dockerfile"77}78},79"name": "string.quoted.single.dockerfile",80"patterns": [81{82"include": "#string-character-escape"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"repository": {103"string-character-escape": {104"name": "constant.character.escaped.dockerfile",105"match": "\\\\."106}107}108}109110