intlayer-editor
Version:
Integrate the Intlayer visual editor into your Intlayer projects, enabling CMS-like content management with multilingual support.
1 lines • 12.1 kB
JavaScript
import{t as e}from"./javascript-obGGvMPs.js";var t=Object.freeze(JSON.parse('{"displayName":"SurrealQL","fileTypes":[".surql",".surrealql"],"foldingStartMarker":"[(\\\\[{|]\\\\s*$","foldingStopMarker":"^\\\\s*[])|}]","name":"surrealql","patterns":[{"include":"#comment"},{"include":"#type-clause"},{"include":"#keywords"},{"include":"#operators"},{"include":"#js-function"},{"include":"#function"},{"include":"#value"}],"repository":{"analyzer-tokenizer":{"match":"(?i)\\\\b(blank|camel|class|punct)\\\\b","name":"support.constant.analyzer-tokenizer.surrealql"},"array":{"begin":"\\\\[","end":"]","patterns":[{"include":"#array-content"}]},"array-content":{"patterns":[{"include":"$self"},{"match":",","name":"punctuation.separator.array"}]},"block":{"begin":"\\\\{","end":"}","name":"surrealql.block","patterns":[{"include":"#block-content"}]},"block-content":{"patterns":[{"include":"#string"},{"include":"#object-key"},{"include":"$self"}]},"boolean":{"match":"\\\\b(true|TRUE|false|FALSE|True|False)\\\\b","name":"constant.language.bool"},"comment":{"patterns":[{"include":"#comment.line.dash"},{"include":"#comment.line.slash"},{"include":"#comment.line.hash"},{"include":"#comment.block"}]},"comment.block":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.surrealql"},"comment.line.dash":{"begin":"--","end":"\\\\n","name":"comment.line.double-dash"},"comment.line.hash":{"begin":"#","end":"\\\\n","name":"comment.line.number-sign"},"comment.line.slash":{"begin":"//","end":"\\\\n","name":"comment.line.double-slash"},"distance-name":{"match":"(?i)\\\\b(chebyshev|euclidean|manhattan|minkowski|hamming|jaccard|pearson|cosine)\\\\b","name":"support.constant.distance.surrealql"},"duration":{"match":"(\\\\d+(?:_\\\\d+)* *(?:ns|µs|ms|[dhmswy])(?![A-Z_a-z]))+","name":"constant.other"},"filter-name":{"match":"(?i)\\\\b(edgengram|uppercase|snowball|ascii|ngram)\\\\b","name":"support.constant.filter.surrealql"},"function":{"begin":"(?=(\\\\b\\\\w+(?:::\\\\b\\\\w+)+|count|rand)\\\\s*\\\\()","beginCaptures":{"1":{"name":"support.function"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"begin":"\\\\(","end":"\\\\)","name":"meta.function.arguments","patterns":[{"include":"#value"}]}]},"ident":{"patterns":[{"begin":"`","end":"(?<!\\\\\\\\)`","name":"support.type.property-name"},{"begin":"⟨","end":"(?<!\\\\\\\\)⟩","name":"support.type.property-name"}]},"identifier":{"match":"\\\\b[A-Z_a-z][0-9A-Z_a-z]*\\\\b","name":"variable.other.surrealql"},"index-type":{"match":"(?i)\\\\b(f32|f64|i16|i32|i64)\\\\b","name":"constant.language.index-type.surrealql"},"js-function":{"begin":"(?=\\\\b(function)\\\\b)","beginCaptures":{"1":{"name":"support.function.js"}},"end":"(?<=})","patterns":[{"include":"#comment"},{"begin":"\\\\(","end":"\\\\)","name":"meta.function.arguments","patterns":[{"include":"#value"}]},{"begin":"\\\\{","end":"}","name":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}]}]},"keywords":{"patterns":[{"match":"(?i)\\\\b(keep_pruned_connections|doc_lengths_cache|doc_lengths_order|extend_candidates|postings_cache|postings_order|doc_ids_cache|doc_ids_order|authenticate|concurrently|mtree_cache|permissions|terms_cache|terms_order|transaction|changefeed|highlights|middleware|schemafull|schemaless|tokenizers|algorithm|dimension|duplicate|functions|namespace|overwrite|reference|structure|tempfiles|analyzer|capacity|computed|continue|database)\\\\b","name":"keyword.control keyword.control.surrealql"},{"match":"(?i)\\\\b(duration|enforced|flexible|function|parallel|passhash|password|readonly|relation|backend|cascade|changes|collate|columns|comment|content|default|exclude|explain|expunge|filters|graphql|include|noindex|numeric|rebuild|replace|session|timeout|version|access|always|assert|bucket|cancel)\\\\b","name":"keyword.control keyword.control.surrealql"},{"match":"(?i)\\\\b(commit|config|create|define|delete|exists|fields|ignore|insert|issuer|normal|option|record|reject|relate|remove|return|search|select|signin|signup|strict|tables|unique|update|upsert|values|alter|async|begin|break|defer|event|fetch|field)\\\\b","name":"keyword.control keyword.control.surrealql"},{"match":"(?i)\\\\b(group|index|limit|merge|mtree|order|param|patch|roles|scope|since|sleep|split|start|table|throw|token|trace|unset|value|where|auto|bm25|desc|dist|drop|else|from|hnsw|info|into|kill|live|omit|only)\\\\b","name":"keyword.control keyword.control.surrealql"},{"match":"(?i)\\\\b(root|show|then|type|user|when|with|all|any|api|asc|efc|end|for|get|jwt|key|let|not|out|put|set|url|use|as|at|by|db|if|in|lm|m0|ns|on|sc)\\\\b","name":"keyword.control keyword.control.surrealql"},{"match":"(?i)\\\\b(tb|to|m)\\\\b","name":"keyword.control keyword.control.surrealql"}]},"literal-keyword":{"match":"(?i)\\\\b(diff|full)\\\\b","name":"constant.language.literal.surrealql"},"number":{"patterns":[{"match":"\\\\b\\\\d+(?:_\\\\d+)*(?:\\\\.\\\\d+(?:_\\\\d+)*)?(?:[Ee][-+]?\\\\d+(?:_\\\\d+)*)?dec\\\\b","name":"constant.numeric.decimal"},{"match":"\\\\b(?:\\\\d+(?:_\\\\d+)*f|\\\\d+(?:_\\\\d+)*(?:\\\\.\\\\d+(?:_\\\\d+)*(?:[Ee][-+]?\\\\d+(?:_\\\\d+)*)?|[Ee][-+]?\\\\d+(?:_\\\\d+)*)f?)\\\\b","name":"constant.numeric.decimal"},{"match":"\\\\b\\\\d+(?:_\\\\d+)*\\\\b","name":"constant.numeric.int"}]},"object-key":{"patterns":[{"captures":{"1":{"name":"string.quoted.double"}},"match":"(?:^|[,{])[\\\\t ]*(\\"[^\\"():?]+\\")(?=:(?!:))"},{"captures":{"1":{"name":"string.quoted.single"}},"match":"(?:^|[,{])[\\\\t ]*(\'[^\'():?]+\')(?=:(?!:))"},{"captures":{"2":{"name":"meta.object-literal.key"}},"match":"(^|[,{])[\\\\t ]*([0-9A-Z_a-z]+)(?=:(?!:))"}]},"operators":{"patterns":[{"match":"<->|->|<-|<~","name":"keyword.operator.arrow.surrealql"},{"include":"#regex-literal"},{"match":"\\\\.\\\\.(?==)","name":"keyword.operator.range.surrealql"},{"match":"\\\\.\\\\.(?!\\\\.)","name":"keyword.operator.range.surrealql"},{"match":"(?i)\\\\b(containsnone|containsnot|containsall|containsany|noneinside|intersects|notinside|allinside|anyinside|contains|outside|inside|and|or)\\\\b","name":"keyword.operator.word.surrealql"},{"match":"&&","name":"keyword.operator.logical-and.surrealql"},{"match":"\\\\|\\\\|","name":"keyword.operator.logical-or.surrealql"},{"match":"\\\\b(IS NOT|is not)\\\\b|!=","name":"keyword.operator.is-not.surrealql"},{"match":"\\\\b(IS|is)\\\\b|=","name":"keyword.operator.is.surrealql"},{"match":"\\\\b(CONTAINSSOME|containssome)\\\\b","name":"keyword.operator.containssome.surrealql"},{"match":"∋","name":"keyword.operator.contains.surrealql"},{"match":"⊇","name":"keyword.operator.containsall.surrealql"},{"match":"⊃","name":"keyword.operator.containsany.surrealql"},{"match":"⊅","name":"keyword.operator.containsnone.surrealql"},{"match":"∌","name":"keyword.operator.containsnot.surrealql"},{"match":"⊆","name":"keyword.operator.allinside.surrealql"},{"match":"⊂","name":"keyword.operator.anyinside.surrealql"},{"match":"⊄","name":"keyword.operator.noneinside.surrealql"},{"match":"∉","name":"keyword.operator.notinside.surrealql"},{"match":"∈","name":"keyword.operator.inside.surrealql"},{"match":"==","name":"keyword.operator.equal.surrealql"},{"match":"\\\\*=","name":"keyword.operator.all-equal.surrealql"},{"match":"\\\\?=","name":"keyword.operator.any-equal.surrealql"},{"match":"!~","name":"keyword.operator.fuzzy-inequal.surrealql"},{"match":"\\\\*~","name":"keyword.operator.fuzzy-all-equal.surrealql"},{"match":"\\\\?~","name":"keyword.operator.fuzzy-any-equal.surrealql"},{"match":"~","name":"keyword.operator.fuzzy-equal.surrealql"},{"match":"<=","name":"keyword.operator.less-or-equal.surrealql"},{"match":"<(?!-|[a-z]+[^:])","name":"keyword.operator.less.surrealql"},{"match":">=","name":"keyword.operator.more-or-equal.surrealql"},{"match":"(?<!-)>","name":"keyword.operator.more.surrealql"},{"match":"\\\\+","name":"keyword.operator.add.surrealql"},{"match":"-","name":"keyword.operator.subtract.surrealql"},{"match":"[*×∙]","name":"keyword.operator.multiply.surrealql"},{"match":"[/÷]","name":"keyword.operator.devide.surrealql"},{"captures":{"1":{"name":"constant.numeric.int"}},"match":"@([0-9]+)?@","name":"keyword.operator.matches.surrealql"},{"match":"\\\\.\\\\?","name":"keyword.operator.optional.surrealql"},{"match":"\\\\?:","name":"keyword.operator.either.surrealql"},{"match":"\\\\?\\\\?","name":"keyword.operator.truthy.surrealql"},{"match":"<\\\\|([,A-Za-z|\\\\d])+\\\\|>","name":"keyword.operator.knn.surrealql"}]},"positional":{"match":"\\\\b(AFTER|after|BEFORE|before)\\\\b","name":"constant.language.positional"},"query":{"patterns":[{"include":"$self"}]},"record":{"patterns":[{"captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}},"match":"\\\\b(\\\\w+)\\\\b:⟨([^⟩]+)⟩"},{"captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}},"match":"\\\\b(\\\\w+)\\\\b:`([^`]+)`"},{"begin":"\\\\b(\\\\w+)\\\\b:(?=\\\\b([:\\\\w]+)\\\\b\\\\s*\\\\()","beginCaptures":{"1":{"name":"entity.name.class"},"2":{"name":"support.function"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"begin":"\\\\(","end":"\\\\)","name":"meta.function.arguments","patterns":[{"include":"#value"}]}]},{"captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}},"match":"\\\\b(\\\\w+)\\\\b:\\\\b(\\\\w+)\\\\b"},{"begin":"\\\\b(\\\\w+)\\\\b:\\\\[","captures":{"1":{"name":"entity.name.class"}},"end":"]","patterns":[{"include":"#array-content"}]},{"begin":"\\\\b(\\\\w+)\\\\b:(?=\\\\{)","captures":{"1":{"name":"entity.name.class"}},"end":"}","patterns":[{"include":"#block-content"}]}]},"regex-literal":{"match":"(?<![0-9A-Za-z])(/)(?:[^/\\\\\\\\]|\\\\\\\\.|\\\\[(?:[^]\\\\\\\\]|\\\\\\\\.)*])*(/)([a-z]*)","name":"string.regexp.surrealql"},"string":{"patterns":[{"begin":"[a-z]?\\"","end":"(?<!\\\\\\\\)\\"","name":"string.quoted.double"},{"begin":"[a-z]?\'","end":"(?<!\\\\\\\\)\'","name":"string.quoted.single"}]},"subquery":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#query"},{"include":"#value"}]},"token-type":{"match":"(?i)\\\\b(eddsa|es256|es384|es512|ps256|ps384|ps512|rs256|rs384|rs512|jwks)\\\\b","name":"support.constant.token-type.surrealql"},"type":{"captures":{"0":{"patterns":[{"match":"[<>]","name":"entity.name.type.surrealql"},{"include":"#number"},{"include":"#void-type"}]}},"match":"[a-z]*<[A-Za-z][ ,0-9<>A-Z_a-z|]+[0-9>A-Za-z]+>","name":"meta.type.annotation.surrealql"},"type-clause":{"begin":"(?i)\\\\b(TYPE)\\\\b","beginCaptures":{"1":{"name":"keyword.control.surrealql"}},"end":"(?=\\\\b(DEFAULT|ASSERT|VALUE|COMMENT|PERMISSIONS|REFERENCE|READONLY|FLEXIBLE|COMPUTED|DIST|DIMENSION|EFC|M|LM|M0)\\\\b|;|$)","name":"meta.type.annotation.surrealql","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#number"},{"include":"#void-type"},{"match":"\\\\|","name":"keyword.operator.union.surrealql"},{"match":"[]<>\\\\[]","name":"punctuation.definition.type.surrealql"},{"match":",","name":"punctuation.separator.type.surrealql"},{"include":"#index-type"},{"match":"\\\\b[A-Z_a-z][0-9A-Z_a-z]*\\\\b","name":"entity.name.type.surrealql"}]},"value":{"patterns":[{"include":"#comment"},{"include":"#js-function"},{"include":"#function"},{"include":"#block"},{"include":"#array"},{"include":"#var-name"},{"include":"#boolean"},{"include":"#string"},{"include":"#ident"},{"include":"#void-type"},{"include":"#positional"},{"include":"#duration"},{"include":"#number"},{"include":"#record"},{"include":"#subquery"},{"include":"#type"},{"include":"#index-type"},{"include":"#token-type"},{"include":"#distance-name"},{"include":"#filter-name"},{"include":"#analyzer-tokenizer"},{"include":"#literal-keyword"},{"include":"#regex-literal"},{"include":"#identifier"}]},"var-name":{"patterns":[{"match":"\\\\$\\\\w+","name":"variable.name"},{"match":"\\\\$`\\\\w+`","name":"variable.name"},{"match":"\\\\$⟨\\\\w+⟩","name":"variable.name"}]},"void-type":{"match":"\\\\b(null|NULL|none|NONE)\\\\b","name":"constant.language.void"}},"scopeName":"source.surrealql","embeddedLangs":["javascript"],"aliases":["surql"]}')),n=[...e,t];export{n as default};