Path: blob/main/extensions/dotenv/syntaxes/dotenv.tmLanguage.json
4772 views
{1"information_for_contributors": [2"This file has been converted from https://github.com/dotenv-org/dotenv-vscode/blob/master/syntaxes/dotenv.tmLanguage.json",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/dotenv-org/dotenv-vscode/commit/e7e41baa5b23e01c1ff0567a4e596c24860e7def",7"scopeName": "source.dotenv",8"patterns": [9{10"comment": "Full Line Comment",11"match": "^\\s?(#.*$)\\n",12"captures": {13"1": {14"patterns": [15{16"include": "#line-comment"17}18]19}20}21},22{23"comment": "ENV entry",24"match": "^\\s?(.*?)\\s?(\\=)(.*)$",25"captures": {26"1": {27"patterns": [28{29"include": "#key"30}31]32},33"2": {34"name": "keyword.operator.assignment.dotenv"35},36"3": {37"name": "property.value.dotenv",38"patterns": [39{40"include": "#line-comment"41},42{43"include": "#double-quoted-string"44},45{46"include": "#single-quoted-string"47},48{49"include": "#interpolation"50}51]52}53}54}55],56"repository": {57"variable": {58"comment": "env variable",59"match": "[a-zA-Z_]+[a-zA-Z0-9_]*"60},61"line-comment": {62"comment": "Comment",63"match": "#.*$",64"name": "comment.line.dotenv"65},66"interpolation": {67"comment": "Interpolation (variable substitution)",68"match": "(\\$\\{)(.*)(\\})",69"captures": {70"1": {71"name": "keyword.interpolation.begin.dotenv"72},73"2": {74"name": "variable.interpolation.dotenv"75},76"3": {77"name": "keyword.interpolation.end.dotenv"78}79}80},81"escape-characters": {82"comment": "Escape characters",83"match": "\\\\[nrtfb\"'\\\\]|\\\\u[0123456789ABCDEF]{4}",84"name": "constant.character.escape.dotenv"85},86"double-quoted-string": {87"comment": "Double Quoted String",88"match": "\"(.*)\"",89"name": "string.quoted.double.dotenv",90"captures": {91"1": {92"patterns": [93{94"include": "#interpolation"95},96{97"include": "#escape-characters"98}99]100}101}102},103"single-quoted-string": {104"comment": "Single Quoted String",105"match": "'(.*)'",106"name": "string.quoted.single.dotenv"107},108"key": {109"comment": "Key",110"match": "(export\\s)?(.*)",111"captures": {112"1": {113"name": "keyword.key.export.dotenv"114},115"2": {116"name": "variable.key.dotenv",117"patterns": [118{119"include": "#variable"120}121]122}123}124}125}126}127128