Genesis
This commit is contained in:
120
.vscode/extensions/playwrong-syntax/syntaxes/playwrong.tmLanguage.json
vendored
Normal file
120
.vscode/extensions/playwrong-syntax/syntaxes/playwrong.tmLanguage.json
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "PlayWrong",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#commands"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.line.number-sign.playwrong",
|
||||
"begin": "#",
|
||||
"end": "$",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.playwrong"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.line.number-sign.playwrong",
|
||||
"match": "."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "comment.block.playwrong",
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.playwrong"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.block.playwrong",
|
||||
"match": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"commands": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.control.playwrong",
|
||||
"match": "\\b(use|open|wait|click|fill|scroll|sleep|dump|break)\\b"
|
||||
},
|
||||
{
|
||||
"name": "entity.name.function.playwrong",
|
||||
"match": "\\b(element|childText|class|id|name|href|type|value|child)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.quoted.double.playwrong",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.playwrong"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.playwrong"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.playwrong",
|
||||
"match": "\\\\."
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"numbers": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.numeric.playwrong",
|
||||
"match": "\\b\\d+\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"variables": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "variable.other.playwrong",
|
||||
"match": "\\$[A-Z_][A-Z0-9_]*"
|
||||
},
|
||||
{
|
||||
"name": "variable.other.playwrong",
|
||||
"match": "\\$\\{[A-Z_][A-Z0-9_]*\\}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.playwrong"
|
||||
}
|
||||
Reference in New Issue
Block a user