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

+5
View File
@@ -0,0 +1,5 @@
const lang = Object.freeze(JSON.parse("{\"displayName\":\"AutoHotkey2\",\"name\":\"ahk2\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#hotkey_hotstring\"},{\"include\":\"#switch_statement\"},{\"include\":\"#object_property\"},{\"include\":\"#reserved\"},{\"include\":\"#numbers\"},{\"include\":\"#operators\"},{\"include\":\"#strings\"},{\"include\":\"#pre_definition\"},{\"include\":\"#class_block\"},{\"include\":\"#block\"},{\"include\":\"#continuation_section\"},{\"include\":\"#parens\"},{\"include\":\"#function_call\"},{\"include\":\"#property\"},{\"include\":\"#variables\"}],\"repository\":{\"block\":{\"patterns\":[{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.block.begin.ahk2\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.ahk2\"}},\"patterns\":[{\"include\":\"#block_innards\"}]}]},\"block_innards\":{\"patterns\":[{\"include\":\"#object_property\"},{\"begin\":\"(?=[\\\\t ])(?<!else|return)(?<=\\\\w)[\\\\t ]+(and|not|or|xor)((?:[_[:alpha:]][_[:alnum:]]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))[\\\\t ]*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.ahk2\"},\"2\":{\"name\":\"punctuation.section.parens.begin.bracket.round.initialization.ahk2\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.end.bracket.round.initialization.ahk2\"}},\"name\":\"meta.initialization.ahk2\",\"patterns\":[{\"include\":\"$base\"}]},{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.block.begin.ahk2\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.ahk2\"}},\"patterns\":[{\"include\":\"#block_innards\"}]},{\"include\":\"$base\"}]},\"brackets\":{\"patterns\":[{\"match\":\"^\\\\s*\\\\*\\\\s+\",\"name\":\"comment.block.ahk2\"},{\"match\":\"([\\\"'])(`\\\\1|.(?<!\\\\1))*\\\\1\",\"name\":\"string.quoted.ahk2\"},{\"begin\":\"\\\\{\",\"end\":\"}|(?=\\\\*/)\",\"patterns\":[{\"include\":\"#brackets\"}]},{\"begin\":\"\\\\[\",\"end\":\"]|(?=\\\\*/)\",\"patterns\":[{\"include\":\"#brackets\"}]}]},\"case_statement\":{\"begin\":\"(?<=^[\\\\t ]*\\\\{?[\\\\t ]*)((?i:case))(?!\\\\w)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.case.ahk2\"}},\"end\":\"(:)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.separator.colon.case.ahk2\"}},\"name\":\"meta.conditional.case.ahk2\",\"patterns\":[{\"include\":\"#strings\"},{\"include\":\"#numbers\"},{\"match\":\",\",\"name\":\"punctuation.separator.comma.ahk2\"},{\"match\":\"\\\\.(?=\\\\w)\",\"name\":\"punctuation.accessor.ahk2\"},{\"include\":\"#function_call\"},{\"match\":\"\\\\{\",\"name\":\"punctuation.section.block.begin.ahk2\"},{\"match\":\"}\",\"name\":\"punctuation.section.block.end.ahk2\"},{\"match\":\"[(\\\\[]\",\"name\":\"punctuation.section.parens.begin.ahk2\"},{\"match\":\"[])]\",\"name\":\"punctuation.section.parens.end.ahk2\"},{\"include\":\"#operators\"},{\"include\":\"#variables\"},{\"include\":\"#comments\"}]},\"class_block\":{\"applyEndPatternLast\":1,\"begin\":\"(?<=^([\\\\t ]*\\\\*/)?[\\\\t ]*(?i:export[\\\\t ]+(default[\\\\t ]+)?)?)(?i:(class|struct))[\\\\t ]+(\\\\$?\\\\w+)\",\"beginCaptures\":{\"3\":{\"name\":\"storage.type.class.ahk2\"},\"4\":{\"name\":\"entity.name.type.class.ahk2\"}},\"end\":\"(})|(?=^[\\\\t ]*[^\\\\t\\\\n\\\\r {])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.class.end.ahk2\"}},\"name\":\"meta.block.class.ahk2\",\"patterns\":[{\"applyEndPatternLast\":1,\"begin\":\"\\\\G(?!\\\\{)\",\"end\":\"(?=\\\\{)|(?=^[\\\\t ]*[^\\\\t\\\\n\\\\r {])\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"\\\\G(<)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.begin.ahk2\"}},\"end\":\">\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.typeparameters.end.ahk2\"}},\"patterns\":[{\"match\":\"\\\\w+\",\"name\":\"entity.name.type.parameter\"},{\"match\":\",\",\"name\":\"punctuation.separator.comma.ahk2\"},{\"match\":\"=\",\"name\":\"keyword.operator.assignment.ahk2\"},{\"match\":\"\\\\.\",\"name\":\"punctuation.accessor.ahk2\"},{\"match\":\"\\\\|\",\"name\":\"keyword.operator.ahk2\"}]},{\"captures\":{\"1\":{\"name\":\"storage.modifier.ahk2\"},\"3\":{\"patterns\":[{\"match\":\"\\\\.(?=\\\\w)\",\"name\":\"punctuation.accessor.ahk2\"},{\"include\":\"#default_classes\"},{\"match\":\"\\\\b[^.]+\\\\b\",\"name\":\"entity.name.type.class.ahk2\"}]}},\"match\":\"\\\\b((?i:extends))([\\\\t ]+([.\\\\w]+))?\"}]},{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.class.begin.ahk2\"}},\"end\":\"(?=})\",\"name\":\"meta.block.class.body.ahk2\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"(?<=^[\\\\t ]*)(?i:static)(?=[\\\\t ]+\\\\w)\",\"name\":\"storage.modifier.ahk2\"},{\"begin\":\"(?<=^[\\\\t ]*(?i:static[\\\\t ]+)?)(\\\\w+)[\\\\t ]*(=>)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.property.ahk2\",\"patterns\":[{\"include\":\"#metafunction\"}]},\"2\":{\"name\":\"storage.type.Line truncated
export default [
lang
]