2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
|
|
const e=Object.freeze(JSON.parse('{"displayName":"PowerQuery","fileTypes":["pq","pqm"],"name":"powerquery","patterns":[{"include":"#Noise"},{"include":"#LiteralExpression"},{"include":"#Keywords"},{"include":"#ImplicitVariable"},{"include":"#IntrinsicVariable"},{"include":"#Operators"},{"include":"#DotOperators"},{"include":"#TypeName"},{"include":"#RecordExpression"},{"include":"#Punctuation"},{"include":"#QuotedIdentifier"},{"include":"#Identifier"}],"repository":{"BlockComment":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.powerquery"},"DecimalNumber":{"match":"(?<![\\\\d\\\\w])(\\\\d*\\\\.\\\\d+)\\\\b","name":"constant.numeric.decimal.powerquery"},"DotOperators":{"captures":{"1":{"name":"keyword.operator.ellipsis.powerquery"},"2":{"name":"keyword.operator.list.powerquery"}},"match":"(?<!\\\\.)(?:(\\\\.\\\\.\\\\.)|(\\\\.\\\\.))(?!\\\\.)"},"EscapeSequence":{"begin":"#\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.escapesequence.begin.powerquery"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.escapesequence.end.powerquery"}},"name":"constant.character.escapesequence.powerquery","patterns":[{"match":"(#|\\\\h{4}|\\\\h{8}|cr|lf|tab)(?:,(#|\\\\h{4}|\\\\h{8}|cr|lf|tab))*"},{"match":"[^)]","name":"invalid.illegal.escapesequence.powerquery"}]},"FloatNumber":{"match":"(\\\\d*\\\\.)?\\\\d+(e|E)(\\\\+|-)?\\\\d+","name":"constant.numeric.float.powerquery"},"HexNumber":{"match":"0(x|X)\\\\h+","name":"constant.numeric.integer.hexadecimal.powerquery"},"Identifier":{"captures":{"1":{"name":"keyword.operator.inclusiveidentifier.powerquery"},"2":{"name":"entity.name.powerquery"}},"match":"(?:(?<![\\\\._\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Nd}\\\\p{Pc}\\\\p{Mn}\\\\p{Mc}\\\\p{Cf}])(@?)([_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}][_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Nd}\\\\p{Pc}\\\\p{Mn}\\\\p{Mc}\\\\p{Cf}]*(?:\\\\.[_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}][_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Nd}\\\\p{Pc}\\\\p{Mn}\\\\p{Mc}\\\\p{Cf}])*)\\\\b)"},"ImplicitVariable":{"match":"\\\\b_\\\\b","name":"keyword.operator.implicitvariable.powerquery"},"InclusiveIdentifier":{"captures":{"0":{"name":"inclusiveidentifier.powerquery"}},"match":"@"},"IntNumber":{"captures":{"1":{"name":"constant.numeric.integer.powerquery"}},"match":"\\\\b(\\\\d+)\\\\b"},"IntrinsicVariable":{"captures":{"1":{"name":"constant.language.intrinsicvariable.powerquery"}},"match":"(?<![\\\\d\\\\w])(#sections|#shared)\\\\b"},"Keywords":{"captures":{"1":{"name":"keyword.operator.word.logical.powerquery"},"2":{"name":"keyword.control.conditional.powerquery"},"3":{"name":"keyword.control.exception.powerquery"},"4":{"name":"keyword.other.powerquery"},"5":{"name":"keyword.powerquery"}},"match":"\\\\b(?:(and|or|not)|(if|then|else)|(try|otherwise)|(as|each|in|is|let|meta|type|error)|(section|shared))\\\\b"},"LineComment":{"match":"//.*","name":"comment.line.double-slash.powerquery"},"LiteralExpression":{"patterns":[{"include":"#String"},{"include":"#NumericConstant"},{"include":"#LogicalConstant"},{"include":"#NullConstant"},{"include":"#FloatNumber"},{"include":"#DecimalNumber"},{"include":"#HexNumber"},{"include":"#IntNumber"}]},"LogicalConstant":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.logical.powerquery"},"Noise":{"patterns":[{"include":"#BlockComment"},{"include":"#LineComment"},{"include":"#Whitespace"}]},"NullConstant":{"match":"\\\\b(null)\\\\b","name":"constant.language.null.powerquery"},"NumericConstant":{"captures":{"1":{"name":"constant.language.numeric.float.powerquery"}},"match":"(?<![\\\\d\\\\w])(#infinity|#nan)\\\\b"},"Operators":{"captures":{"1":{"name":"keyword.operator.function.powerquery"},"2":{"name":"keyword.operator.assignment-or-comparison.powerquery"},"3":{"name":"keyword.operator.comparison.powerquery"},"4":{"name":"keyword.operator.combination.powerquery"},"5":{"name":"keyword.operator.arithmetic.powerquery"},"6":{"name":"keyword.operator.sectionaccess.powerquery"},"7":{"name":"keyword.operator.optiona
|