Closed esidegallery closed 1 year ago
Someone will need to implement these new language features in the Royale compiler before they can be supported in vscode-as3mxml.
OK, I've just created the issue over there: https://github.com/apache/royale-compiler/issues/219#issue-1374761667
Excuse me, i think the current version still does not support verbatim string delimiters.
For example: @"i am a "verbatim string""
.
@shaucky The compiler in AIR SDK 50.2 does not consider your string to be valid.
Syntax error: Expected PAREN_CLOSE but got 'verbatim'
I don't think that a verbatim string can contain a "
character because "
is used to indicate the end of the string.
Sorry, i mixed up the feature of literal strings and provided an inappropriate example…
Literal strings ignore all escape characters and interpret them as regular backslashes. Currently, the code shader still performs special coloring on escape characters within literal strings.
And this is a suitable example that can be compiled: trace(@"i am a verbatim string\r\n");
.
The main affect here is when a literal string ends with a backslash, the coloring will assume that the string is still after it.
The new AIR 50 Beta SDK introduces support for null-conditional operators, nullish coalescing and verbatim strings, outlined here https://github.com/airsdk/Adobe-Runtime-Support/discussions/1699#discussioncomment-3653584 😁