the editable site (validation-lab)

This commit is contained in:
kpgarrod committed 2026-11-21 08:03:55 +01:00
commit 3ac81d5a52
13454 files changed
+2227005

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import javascript from './javascript.mjs'
const lang = 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\":\"keywoLine truncated
export default [
...javascript,
lang
]