release: WRNexusJS 0.6.0
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#v060-keywords"
|
||||
},
|
||||
{
|
||||
"include": "#imports"
|
||||
},
|
||||
@@ -46,12 +49,18 @@
|
||||
]
|
||||
},
|
||||
"declaration": {
|
||||
"match": "\\b(page|component|layout)\\b\\s+([A-Za-z_$][A-Za-z0-9_$]*)?",
|
||||
"match": "\\b(?:(global|page)\\s+(store)|(page|component|layout))\\b\\s+([A-Za-z_$][A-Za-z0-9_$]*)?",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.type.wrn keyword.control.wrn"
|
||||
"name": "storage.modifier.wrn"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.type.wrn keyword.control.wrn"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.type.wrn keyword.control.wrn"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.type.wrn"
|
||||
}
|
||||
}
|
||||
@@ -73,6 +82,9 @@
|
||||
{
|
||||
"include": "#props-block"
|
||||
},
|
||||
{
|
||||
"include": "#outputs-block"
|
||||
},
|
||||
{
|
||||
"include": "#lifecycle-block"
|
||||
},
|
||||
@@ -112,6 +124,12 @@
|
||||
{
|
||||
"include": "#state-decl"
|
||||
},
|
||||
{
|
||||
"include": "#grouped-state-block"
|
||||
},
|
||||
{
|
||||
"include": "#persist-block"
|
||||
},
|
||||
{
|
||||
"include": "#layout-decl"
|
||||
},
|
||||
@@ -201,7 +219,7 @@
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"match": "(@event)\\s+([A-Za-z_$][A-Za-z0-9_$]*)\\s*(=)\\s*(function)\\b",
|
||||
"match": "(outputs|@event)\\s+([A-Za-z_$][A-Za-z0-9_$]*)\\s*(=)\\s*(function)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.event.wrn"
|
||||
@@ -333,15 +351,18 @@
|
||||
"contentName": "meta.embedded.block.ts",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(async\\s+)?(function)\\s+([A-Za-z_$][A-Za-z0-9_$]*)",
|
||||
"match": "\\b(?:(client|server|shared)\\s+)?(async\\s+)?(function)\\s+([A-Za-z_$][A-Za-z0-9_$]*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.async.ts"
|
||||
"name": "storage.modifier.runtime.wrn"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.type.function.ts"
|
||||
"name": "storage.modifier.async.ts"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.type.function.ts"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.function.wrn"
|
||||
}
|
||||
}
|
||||
@@ -375,7 +396,7 @@
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"begin": "\\b(mount|update|unmount)\\b\\s*(\\{)",
|
||||
"begin": "\\b(mount|update|unmount|serverInit|clientInit|hydrate|dispose)\\b\\s*(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.lifecycle.wrn keyword.control.wrn"
|
||||
@@ -841,12 +862,18 @@
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"match": "\\b([A-Za-z_$][A-Za-z0-9_$]*)\\s*(=)",
|
||||
"match": "\\b([A-Za-z_$][A-Za-z0-9_$]*)(?:\\s*(:)\\s*([^=\\r\\n]+?))?\\s*(=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.other.readwrite.declaration.wrn"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.type.wrn"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.type.wrn"
|
||||
},
|
||||
"4": {
|
||||
"name": "keyword.operator.assignment.wrn"
|
||||
}
|
||||
}
|
||||
@@ -978,6 +1005,151 @@
|
||||
"include": "source.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"v060-keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "storage.modifier.runtime.wrn",
|
||||
"match": "\\b(client|server|shared)\\b(?=\\s+(?:async\\s+)?function|\\s+state\\b)"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.language.wrn",
|
||||
"match": "\\b(output|server|props|refs|payload)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.wrn",
|
||||
"match": "\\b(outputs|persist)\\b(?=\\s*\\{)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"outputs-block": {
|
||||
"begin": "\\b(outputs)\\b\\s*(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.wrn"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.block.begin.wrn"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.block.end.wrn"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"match": "\\b([A-Za-z_$][A-Za-z0-9_$]*)\\s*(\\()\\s*(?:([A-Za-z_$][A-Za-z0-9_$]*)(\\??)\\s*(:)\\s*([^\\)]+))?\\s*(\\))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.event.wrn"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.parameters.begin.wrn"
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.parameter.wrn"
|
||||
},
|
||||
"4": {
|
||||
"name": "keyword.operator.optional.wrn"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.separator.type.wrn"
|
||||
},
|
||||
"6": {
|
||||
"name": "storage.type.wrn"
|
||||
},
|
||||
"7": {
|
||||
"name": "punctuation.definition.parameters.end.wrn"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"grouped-state-block": {
|
||||
"begin": "\\b(?:(client|server|shared)\\s+)?(state)\\b\\s*(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.runtime.wrn"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.wrn"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.block.begin.wrn"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.block.end.wrn"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"match": "\\b([A-Za-z_$][A-Za-z0-9_$]*)(?:\\s*(:)\\s*([^=\\r\\n]+?))?\\s*(=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.other.readwrite.declaration.wrn"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.type.wrn"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.type.wrn"
|
||||
},
|
||||
"4": {
|
||||
"name": "keyword.operator.assignment.wrn"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "source.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"persist-block": {
|
||||
"begin": "\\b(persist)\\b\\s*(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.wrn"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.block.begin.wrn"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.block.end.wrn"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"match": "\\b(storage|include|version)\\b\\s*(=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.type.property-name.wrn"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.assignment.wrn"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "source.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user