diff --git a/examples/unit_test.rpy b/examples/unit_test.rpy index fe4a663..96d4cef 100644 --- a/examples/unit_test.rpy +++ b/examples/unit_test.rpy @@ -1199,6 +1199,14 @@ translate piglatin python: style.default.font = "stonecutter.ttf" + old "These two lines will be combined together to form a long line.\n\nThis line will be separate." + new _p(""" + These two lines will be combined together + to form a long line. Bork bork bork. + + This line will be separate. Bork bork bork. + """) + frame: style_prefix "pref" has vbox @@ -1214,13 +1222,7 @@ This line will be separate. """) - old "These two lines will be combined together to form a long line.\n\nThis line will be separate." - new _p(""" - These two lines will be combined together - to form a long line. Bork bork bork. - - This line will be separate. Bork bork bork. - """) + #endregion Translation diff --git a/package.json b/package.json index 97cf33e..6de502a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "languague-renpy", "displayName": "Ren'Py Language", "description": "Adds rich support for the Ren'Py programming language to Visual Studio Code.", - "version": "2.3.2", + "version": "2.3.3", "publisher": "LuqueDaniel", "license": "MIT", "homepage": "https://github.com/LuqueDaniel/vscode-language-renpy", diff --git a/syntaxes/renpy.python.tmLanguage.json b/syntaxes/renpy.python.tmLanguage.json index 6821c4f..205ccbd 100644 --- a/syntaxes/renpy.python.tmLanguage.json +++ b/syntaxes/renpy.python.tmLanguage.json @@ -260,12 +260,11 @@ }, "member-access": { "name": "meta.member.access.python", - "contentName": "variable.name.python", "begin": "(\\.)\\s*(?!\\.)", - "end": "(?<=\\S)(?=\\W)|(^|(?<=\\s))(?=[^\\\\\\w\\s])|$", "beginCaptures": { "1": { "name": "punctuation.separator.period.python" } }, + "end": "(?<=\\S)(?=\\W)|(^|(?<=\\s))(?=[^\\\\\\w\\s])|$", "patterns": [{ "include": "#function-call" }, { "include": "#member-access-base" }, { "include": "#member-access-attribute" }] }, "member-access-base": { @@ -273,7 +272,7 @@ }, "member-access-attribute": { "comment": "Highlight attribute access in otherwise non-specialized cases.", - "name": "meta.attribute.python", + "name": "variable.name.python meta.attribute.python", "match": "\\b([[:alpha:]_]\\w*)\\b" }, "special-names": { @@ -868,7 +867,7 @@ "item-access": { "patterns": [ { - "name": "meta.item-access.python", + "name": "variable.name.python meta.item-access.python", "begin": "\\b(?=[[:alpha:]_]\\w*\\s*\\[)", "end": "(\\])", "endCaptures": { @@ -967,7 +966,7 @@ { "include": "#builtin-possible-callables" }, { "comment": "Some color schemas support meta.function-call.generic scope", - "name": "meta.function-call.generic.python", + "name": "entity.name.function.call.python meta.function-call.generic.python", "match": "\\b([[:alpha:]_]\\w*)\\b" } ] diff --git a/syntaxes/renpy.screen.tmLanguage.json b/syntaxes/renpy.screen.tmLanguage.json index 3cf9925..6467db5 100644 --- a/syntaxes/renpy.screen.tmLanguage.json +++ b/syntaxes/renpy.screen.tmLanguage.json @@ -25,7 +25,7 @@ ] }, "screen-build-in-properties": { - "comment": "https://www.renpy.org/doc/html/atl.html#list-of-transform-properties", + "comment": "These are the ATL keywords, will need to fix this later", "patterns": [ { "comment": "Special manipulation keywords", @@ -37,6 +37,18 @@ "4": { "name": "keyword.counterclockwise.renpy" } } }, + { + "comment": "Special manipulation keywords", + "match": "\\b(?