diff --git a/src/Compilers/Lua/Portable/Parser/Lexer.ShortString.cs b/src/Compilers/Lua/Portable/Parser/Lexer.ShortString.cs index cb827352..59cad25f 100644 --- a/src/Compilers/Lua/Portable/Parser/Lexer.ShortString.cs +++ b/src/Compilers/Lua/Portable/Parser/Lexer.ShortString.cs @@ -137,7 +137,7 @@ private string ParseShortString() { if (_options.SyntaxOptions.AcceptInvalidEscapes && !_options.SyntaxOptions.AcceptUnicodeEscape) goto default; - + TextWindow.AdvanceChar(); var parsed = parseUnicodeEscape(escapeStart); _builder.Append(parsed); diff --git a/src/Compilers/Lua/Test/Portable/Lexical/LexicalTestData.cs b/src/Compilers/Lua/Test/Portable/Lexical/LexicalTestData.cs index dadbcafd..b73fa28d 100644 --- a/src/Compilers/Lua/Test/Portable/Lexical/LexicalTestData.cs +++ b/src/Compilers/Lua/Test/Portable/Lexical/LexicalTestData.cs @@ -292,7 +292,7 @@ public static IEnumerable GetTokens(LuaSyntaxOptions options) if (options.AcceptHexEscapesInStrings || !options.AcceptInvalidEscapes) { shortStringContentValue = shortStringContentValue.Replace("xFxFF", "\xF\xFF"); - } + } if (options.AcceptUnicodeEscape || !options.AcceptInvalidEscapes) {