diff --git a/examples/.vscode/settings.json b/examples/.vscode/settings.json index c897acd..c885f64 100644 --- a/examples/.vscode/settings.json +++ b/examples/.vscode/settings.json @@ -7,6 +7,12 @@ }, "editor.tokenColorCustomizations": { "textMateRules": [ + { + "scope": "debug.invalid.illegal.unmatched.renpy", + "settings": { + "foreground": "#f00" + } + }, { "scope": "renpy.meta.plain", "settings": { diff --git a/package.json b/package.json index 809890e..980fa89 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,11 @@ "name": "languague-renpy", "displayName": "Ren'Py Language", "description": "Adds rich support for the Ren'Py programming language to Visual Studio Code.", - "version": "2.2.0", + + "version": "2.2.1", + + + "publisher": "LuqueDaniel", "license": "MIT", "homepage": "https://github.com/LuqueDaniel/vscode-language-renpy", @@ -69,12 +73,16 @@ "path": "./syntaxes/renpy.tmLanguage.json" }, { - "scopeName": "source.renpy.python", - "path": "./syntaxes/renpy.python.tmLanguage.json" + "scopeName": "source.renpy.screen", + "path": "./syntaxes/renpy.screen.tmLanguage.json" }, { "scopeName": "source.renpy.atl", "path": "./syntaxes/renpy.atl.tmLanguage.json" + }, + { + "scopeName": "source.renpy.python", + "path": "./syntaxes/renpy.python.tmLanguage.json" } ], "snippets": [ diff --git a/syntaxes/renpy.atl.tmLanguage.json b/syntaxes/renpy.atl.tmLanguage.json index c0e7ebd..b1e4029 100644 --- a/syntaxes/renpy.atl.tmLanguage.json +++ b/syntaxes/renpy.atl.tmLanguage.json @@ -7,7 +7,17 @@ "repository": { "atl": { "comment": "https://www.renpy.org/doc/html/atl.html#atl-syntax-and-semantics", - "patterns": [{ "include": "#atl-keywords" }, { "include": "#atl-blocks" }, { "include": "#atl-simple-expression" }, { "include": "#atl-warper" }, { "include": "#atl-event" }, { "include": "#atl-on" }, { "include": "#atl-function" }] + "patterns": [ + { "include": "source.renpy#conditionals" }, + { "include": "#atl-keywords" }, + { "include": "#atl-warper" }, + { "include": "#atl-blocks" }, + { "include": "#atl-simple-expression" }, + { "include": "#atl-event" }, + { "include": "#atl-on" }, + { "include": "#atl-function" }, + { "include": "#atl-fallback" } + ] }, "atl-build-in-properties": { "comment": "https://www.renpy.org/doc/html/atl.html#list-of-transform-properties", @@ -24,67 +34,67 @@ }, { "comment": "position props (int, absolute, or a float)", - "name": "support.type.property-name.transform.renpy", + "name": "support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy", "match": "\\b(?