You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2022/11/28 22:04:13 UTC

[royale-compiler] 02/04: RawASTokenizer: verbatim strings should include backslashes instead of omitting them (references #222)

This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit 87b4736da8787c1718352e759a61e0f45d18f97c
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Nov 28 12:44:32 2022 -0800

    RawASTokenizer: verbatim strings should include backslashes instead of omitting them (references #222)
---
 .../org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.lex | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compiler/src/main/jflex/org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.lex b/compiler/src/main/jflex/org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.lex
index 580c8739d..907354eda 100644
--- a/compiler/src/main/jflex/org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.lex
+++ b/compiler/src/main/jflex/org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.lex
@@ -347,6 +347,10 @@ REGEX_CLASS="[" ({REGEX_ESCAPE}|[^\n\r\]\\])* "]"
 	{
 		yybegin(ESCAPE_SEQUENCE);
 	}
+	else
+	{
+		continueAggregate();
+	}
 }
 
 <STRINGLITERAL> {LINE_TERMINATOR}+