зеркало из https://github.com/nextcloud/text.git
1 строка
9.1 KiB
Plaintext
1 строка
9.1 KiB
Plaintext
|
{"version":3,"file":"n1ql-CJEaPMZL.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/n1ql.js"],"sourcesContent":["/*\n Language: N1QL\n Author: Andres Täht <andres.taht@gmail.com>\n Contributors: Rene Saarsoo <nene@triin.net>\n Description: Couchbase query language\n Website: https://www.couchbase.com/products/n1ql\n Category: database\n */\n\nfunction n1ql(hljs) {\n // Taken from http://developer.couchbase.com/documentation/server/current/n1ql/n1ql-language-reference/reservedwords.html\n const KEYWORDS = [\n \"all\",\n \"alter\",\n \"analyze\",\n \"and\",\n \"any\",\n \"array\",\n \"as\",\n \"asc\",\n \"begin\",\n \"between\",\n \"binary\",\n \"boolean\",\n \"break\",\n \"bucket\",\n \"build\",\n \"by\",\n \"call\",\n \"case\",\n \"cast\",\n \"cluster\",\n \"collate\",\n \"collection\",\n \"commit\",\n \"connect\",\n \"continue\",\n \"correlate\",\n \"cover\",\n \"create\",\n \"database\",\n \"dataset\",\n \"datastore\",\n \"declare\",\n \"decrement\",\n \"delete\",\n \"derived\",\n \"desc\",\n \"describe\",\n \"distinct\",\n \"do\",\n \"drop\",\n \"each\",\n \"element\",\n \"else\",\n \"end\",\n \"every\",\n \"except\",\n \"exclude\",\n \"execute\",\n \"exists\",\n \"explain\",\n \"fetch\",\n \"first\",\n \"flatten\",\n \"for\",\n \"force\",\n \"from\",\n \"function\",\n \"grant\",\n \"group\",\n \"gsi\",\n \"having\",\n \"if\",\n \"ignore\",\n \"ilike\",\n \"in\",\n \"include\",\n \"increment\",\n \"index\",\n \"infer\",\n \"inline\",\n \"inner\",\n \"insert\",\n \"intersect\",\n \"into\",\n \"is\",\n \"join\",\n \"key\",\n \"keys\",\n \"keyspace\",\n \"known\",\n \"last\",\n \"left\",\n \"let\",\n \"letting\",\n \"like\",\n \"limit\",\n \"lsm\",\n \"map\",\n \"mapping\",\n \"matched\",\n \"materialized\",\n \"merge\",\n \"minus\",\n \"namespace\",\n \"nest\",\n \"not\",\n \"number\",\n \"object\",\n \"offset\",\n \"on\",\n \"option\",\n \"or\",\n \"order\",\n \"outer\",\n \"over\",\n \"parse\",\n \"partition\",\n \"password\",\n \"path\",\n \"pool\",\n \"prepare\",\n \"primary\",\n \"private\",\n \"privilege\",\n \"procedure\",\n \"public\",\n \"raw\",\n \"realm\",\n \"reduce\",\n \"rename\",\n \"return\",\n \"returning\",\n \"revoke\",\n \"right\",\n \"role\",\n \"rollback\",\n \"satisfies\",\n \"schema\",\n \"select\",\n \"self\",\n \"semi\",\n \"set\",\n \"show\",\n \"some\",\n \"start\",\n \"statistics\",\n \"string\",\n \"system\",\n \"then\",\n \"to\",\n \"transaction\",\n \"trigger\",\n \"truncate\",\n \"under\",\n \"union\",\n \"unique\",\n \"unknown\",\n \"unnest\",\n \"unset\",\n \"update\",\n \"upsert\",\n \"use\",\n \"user\",\n \"using\",\n \"validate\",\n \"value\",\n \"valued\",\n \"values\",\n \"via\",\n \"view\",\n \"when\",\n \"where\",\n \"while\",\n \"with\",\n \"within\",\n \"work\",\n \"xor\"\n ];\n // Taken from http://developer.couchbase.com/documentation/server/4.5/n1ql/n1ql-language-reference/literals.html\n const LITERALS = [\n \"true\",\n \"false\",\n \"null\",\n \"missing|5\"\n ];\n // Taken from http://developer.couchbase.com/documentation/server/4.5/n1ql/n1ql-language-reference/functions.html\n const BUILT_INS = [\n \"array_agg\",\n \"array_append\",\n \"array_concat\",\n \"array_contains\",\n \"array_count\",\n \"array_distinct\",\n \"array_ifnull\",\n \"array_length\",\n \"array_max\",\n \"array_min\",\n \"array_position\",\n \"array_prepend\",\n \"array_put\",\n \"array_range\",\n \"array_remove\",\n \"array_repeat\",\n \"array_replace\",\n \"array_reverse\",\n \"array_sort\",\n \"array_sum\",\n
|