{ "$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|switch to new window|switch to tab|extract)\\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" }