Path: blob/main/extensions/json/syntaxes/JSONL.tmLanguage.json
4772 views
{1"information_for_contributors": [2"This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.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/microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70",7"name": "JSON Lines",8"scopeName": "source.json.lines",9"patterns": [10{11"include": "#value"12}13],14"repository": {15"array": {16"begin": "\\[",17"beginCaptures": {18"0": {19"name": "punctuation.definition.array.begin.json.lines"20}21},22"end": "\\]",23"endCaptures": {24"0": {25"name": "punctuation.definition.array.end.json.lines"26}27},28"name": "meta.structure.array.json.lines",29"patterns": [30{31"include": "#value"32},33{34"match": ",",35"name": "punctuation.separator.array.json.lines"36},37{38"match": "[^\\s\\]]",39"name": "invalid.illegal.expected-array-separator.json.lines"40}41]42},43"comments": {44"patterns": [45{46"begin": "/\\*\\*(?!/)",47"captures": {48"0": {49"name": "punctuation.definition.comment.json.lines"50}51},52"end": "\\*/",53"name": "comment.block.documentation.json.lines"54},55{56"begin": "/\\*",57"captures": {58"0": {59"name": "punctuation.definition.comment.json.lines"60}61},62"end": "\\*/",63"name": "comment.block.json.lines"64},65{66"captures": {67"1": {68"name": "punctuation.definition.comment.json.lines"69}70},71"match": "(//).*$\\n?",72"name": "comment.line.double-slash.js"73}74]75},76"constant": {77"match": "\\b(?:true|false|null)\\b",78"name": "constant.language.json.lines"79},80"number": {81"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional",82"name": "constant.numeric.json.lines"83},84"object": {85"begin": "\\{",86"beginCaptures": {87"0": {88"name": "punctuation.definition.dictionary.begin.json.lines"89}90},91"end": "\\}",92"endCaptures": {93"0": {94"name": "punctuation.definition.dictionary.end.json.lines"95}96},97"name": "meta.structure.dictionary.json.lines",98"patterns": [99{100"comment": "the JSON object key",101"include": "#objectkey"102},103{104"include": "#comments"105},106{107"begin": ":",108"beginCaptures": {109"0": {110"name": "punctuation.separator.dictionary.key-value.json.lines"111}112},113"end": "(,)|(?=\\})",114"endCaptures": {115"1": {116"name": "punctuation.separator.dictionary.pair.json.lines"117}118},119"name": "meta.structure.dictionary.value.json.lines",120"patterns": [121{122"comment": "the JSON object value",123"include": "#value"124},125{126"match": "[^\\s,]",127"name": "invalid.illegal.expected-dictionary-separator.json.lines"128}129]130},131{132"match": "[^\\s\\}]",133"name": "invalid.illegal.expected-dictionary-separator.json.lines"134}135]136},137"string": {138"begin": "\"",139"beginCaptures": {140"0": {141"name": "punctuation.definition.string.begin.json.lines"142}143},144"end": "\"",145"endCaptures": {146"0": {147"name": "punctuation.definition.string.end.json.lines"148}149},150"name": "string.quoted.double.json.lines",151"patterns": [152{153"include": "#stringcontent"154}155]156},157"objectkey": {158"begin": "\"",159"beginCaptures": {160"0": {161"name": "punctuation.support.type.property-name.begin.json.lines"162}163},164"end": "\"",165"endCaptures": {166"0": {167"name": "punctuation.support.type.property-name.end.json.lines"168}169},170"name": "string.json.lines support.type.property-name.json.lines",171"patterns": [172{173"include": "#stringcontent"174}175]176},177"stringcontent": {178"patterns": [179{180"match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits",181"name": "constant.character.escape.json.lines"182},183{184"match": "\\\\.",185"name": "invalid.illegal.unrecognized-string-escape.json.lines"186}187]188},189"value": {190"patterns": [191{192"include": "#constant"193},194{195"include": "#number"196},197{198"include": "#string"199},200{201"include": "#array"202},203{204"include": "#object"205},206{207"include": "#comments"208}209]210}211}212}213214