{"name":"XQuery","scopeName":"source.xq","patterns":[{"begin":"^(?=jsoniq\\s+version\\s+)","end":"\\z","patterns":[{"include":"source.jsoniq"}]},{"name":"constant.xquery","begin":"\\(#","end":"#\\)"},{"name":"comment.doc.xquery","begin":"\\(:~","end":":\\)","patterns":[{"name":"constant.language.xquery","match":"@[a-zA-Z0-9_\\.\\-]+"}]},{"include":"#XMLComment"},{"include":"#CDATA"},{"include":"#PredefinedEntityRef"},{"include":"#CharRef"},{"name":"comment.xquery","begin":"\u003c\\?","end":"\\?\u003e"},{"name":"comment.xquery","begin":"\\(:","end":":\\)"},{"name":"string.xquery","begin":"\"","end":"\"(?!\")","patterns":[{"name":"constant.xquery","match":"\"\""},{"include":"#PredefinedEntityRef"},{"include":"#CharRef"}]},{"name":"string.xquery","begin":"'","end":"'(?!')","patterns":[{"name":"constant.xquery","match":"''"},{"include":"#PredefinedEntityRef"},{"include":"#CharRef"}]},{"name":"meta.declaration.annotation.xquery","match":"%([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*)"},{"name":"support.type.xquery","match":"@(\\* | ([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*))"},{"name":"meta.definition.variable.name.xquery","match":"\\$([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*)"},{"name":"constant.numeric.jsoniq","match":"\\b(\\.[0-9]+|[0-9]+(\\.[0-9]*)?)[Ee][+#x002D]?[0-9]+\\b"},{"name":"constant.numeric.jsoniq","match":"\\b(\\.[0-9]+|[0-9]+\\.[0-9]*)\\b"},{"name":"constant.numeric.jsoniq","match":"\\b[0-9]+\\b"},{"name":"keyword.xquery","match":"\\b(NaN|after|allowing|ancestor|ancestor-or-self|and|append|array|as|ascending|at|attribute|base-uri|before|boundary-space|break|by|case|cast|castable|catch|child|collation|comment|constraint|construction|contains|context|continue|copy|copy-namespaces|count|decimal-format|decimal-separator|declare|default|delete|descendant|descendant-or-self|descending|digit|div|document|document-node|element|else|empty|empty-sequence|encoding|end|eq|every|except|exit|external|false|first|following|following-sibling|for|from|ft-option|function|ge|greatest|group|grouping-separator|gt|idiv|if|import|in|index|infinity|insert|instance|integrity|intersect|into|is|item|json|json-item|jsoniq|last|lax|le|least|let|loop|lt|minus-sign|mod|modify|module|namespace|namespace-node|ne|next|node|nodes|not|null|object|of|only|option|or|order|ordered|ordering|paragraphs|parent|pattern-separator|per-mille|percent|preceding|preceding-sibling|previous|processing-instruction|rename|replace|return|returning|revalidation|satisfies|schema|schema-attribute|schema-element|score|select|self|sentences|sliding|some|stable|start|strict|switch|text|then|times|to|treat|true|try|tumbling|type|typeswitch|union|unordered|updating|validate|value|variable|version|when|where|while|window|with|words|xquery|zero-digit)(?!(:|\\-))\\b"},{"name":"support.function.xquery","match":"([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)(?=\\s*\\()"},{"name":"lparen.xquery","match":"\\("},{"name":"rparent.xquery","match":"\\)"},{"include":"#OpenTag"},{"include":"#CloseTag"}],"repository":{"CDATA":{"name":"constant.language.xquery","begin":"\u003c!\\[CDATA\\[","end":"\\]\\]\u003e"},"CharRef":{"name":"constant.language.escape.xquery","match":"\u0026#([0-9]+|x[0-9A-Fa-f]+);"},"CloseTag":{"name":"punctuation.definition.tag.xquery","match":"\u003c\\/([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)\u003e"},"EnclosedExpr":{"name":"source.xq","begin":"{","end":"}","patterns":[{"include":"$self"}]},"OpenTag":{"name":"punctuation.definition.tag.xquery","begin":"\u003c([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)","end":"(\\/\u003e|\u003e)","patterns":[{"name":"entity.other.attribute-name.xquery","match":"([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)"},{"name":"source.jsoniq","match":"="},{"name":"string.xquery","begin":"'","end":"'(?!')","patterns":[{"name":"constant.xquery","match":"''"},{"include":"#PredefinedEntityRef"},{"include":"#CharRef"},{"name":"string.xquery","match":"({{|}})"},{"include":"#EnclosedExpr"}]},{"name":"string.xquery","begin":"\"","end":"\"(?!\")","patterns":[{"name":"constant.xquery","match":"\"\""},{"include":"#PredefinedEntityRef"},{"include":"#CharRef"},{"name":"constant.xquery","match":"({{|}})"},{"include":"#EnclosedExpr"}]}]},"PredefinedEntityRef":{"name":"constant.language.escape.xquery","match":"\u0026(lt|gt|amp|quot|apos);"},"XMLComment":{"name":"comment.xquery","begin":"\u003c!--","end":"--\u003e"}}}