2 lines
12 KiB
JavaScript
Raw Normal View History

2025-09-05 14:59:21 +08:00
const n=Object.freeze(JSON.parse(`{"displayName":"Hjson","fileTypes":["hjson"],"foldingStartMarker":"(?:^\\\\s*[{\\\\[](?!.*[}\\\\]],?\\\\s*$)|[{\\\\[]\\\\s*$)","foldingStopMarker":"(?:^\\\\s*[}\\\\]])","name":"hjson","patterns":[{"include":"#comments"},{"include":"#value"},{"match":"[^\\\\s]","name":"invalid.illegal.excess-characters.hjson"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.hjson"}},"end":"(\\\\])(?:\\\\s*([^,\\\\s]+))?","endCaptures":{"1":{"name":"punctuation.definition.array.end.hjson"},"2":{"name":"invalid.illegal.value.hjson"}},"name":"meta.structure.array.hjson","patterns":[{"include":"#arrayContent"}]},"arrayArray":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.hjson"}},"end":"(\\\\])(?:\\\\s*([^,\\\\s\\\\]]+))?","endCaptures":{"1":{"name":"punctuation.definition.array.end.hjson"},"2":{"name":"invalid.illegal.value.hjson"}},"name":"meta.structure.array.hjson","patterns":[{"include":"#arrayContent"}]},"arrayConstant":{"captures":{"1":{"name":"constant.language.hjson"},"2":{"name":"punctuation.separator.array.after-const.hjson"}},"match":"\\\\b(true|false|null)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|\\\\]))"},"arrayContent":{"name":"meta.structure.array.hjson","patterns":[{"include":"#comments"},{"include":"#arrayValue"},{"begin":"(?<=\\\\[)|,","beginCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.hjson"}},"end":"(?=[^\\\\s,/#])|(?=/[^/*])","patterns":[{"include":"#comments"},{"match":",","name":"invalid.illegal.extra-comma.hjson"}]},{"match":",","name":"punctuation.separator.array.hjson"},{"match":"[^\\\\s\\\\]]","name":"invalid.illegal.expected-array-separator.hjson"}]},"arrayJstring":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.hjson"}},"end":"(\\")(?:\\\\s*((?:[^,\\\\s\\\\]#/]|/[^/*])+))?","endCaptures":{"1":{"name":"punctuation.definition.string.end.hjson"},"2":{"name":"invalid.illegal.value.hjson"}},"name":"string.quoted.double.hjson","patterns":[{"include":"#jstringDoubleContent"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.hjson"}},"end":"(')(?:\\\\s*((?:[^,\\\\s\\\\]#/]|/[^/*])+))?","endCaptures":{"1":{"name":"punctuation.definition.string.end.hjson"},"2":{"name":"invalid.illegal.value.hjson"}},"name":"string.quoted.single.hjson","patterns":[{"include":"#jstringSingleContent"}]}]},"arrayMstring":{"begin":"'''","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.hjson"}},"end":"(''')(?:\\\\s*((?:[^,\\\\s\\\\]#/]|/[^/*])+))?","endCaptures":{"1":{"name":"punctuation.definition.string.end.hjson"},"2":{"name":"invalid.illegal.value.hjson"}},"name":"string.quoted.multiline.hjson"},"arrayNumber":{"captures":{"1":{"name":"constant.numeric.hjson"},"2":{"name":"punctuation.separator.array.after-num.hjson"}},"match":"(-?(?:0|(?:[1-9]\\\\d*))(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|\\\\]))"},"arrayObject":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.hjson"}},"end":"(\\\\}|(?<=\\\\}))(?:\\\\s*([^,\\\\s\\\\]]+))?","endCaptures":{"1":{"name":"punctuation.definition.dictionary.end.hjson"},"2":{"name":"invalid.illegal.value.hjson"}},"name":"meta.structure.dictionary.hjson","patterns":[{"include":"#objectContent"}]},"arrayString":{"patterns":[{"include":"#arrayMstring"},{"include":"#arrayJstring"},{"include":"#ustring"}]},"arrayValue":{"patterns":[{"include":"#arrayNumber"},{"include":"#arrayConstant"},{"include":"#arrayString"},{"include":"#arrayObject"},{"include":"#arrayArray"}]},"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.hjson"}},"match":"^\\\\s*(#).*(?:\\\\n)?","name":"comment.line.hash"},{"captures":{"1":{"name":"punctuation.definition.comment.hjson"}},"match":"^\\\\s*(//).*(?:\\\\n)?","name":"comment.line.double-slash"},{"begin":"^\\\\s*/\\\\*","beginCaptures":{"1":{"name":"punctuation.definition.comment.hjson"}},"end":"\\\\*/(?:\\\\s*\\\\n)?","