We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a77910 commit dbb6538Copy full SHA for dbb6538
LuaParser/src/Lexer/LuaLexer.cpp
@@ -254,6 +254,17 @@ LuaTokenKind LuaLexer::Lex() {
254
}
255
return '#';
256
257
+ case '{': {
258
+ // extend syntax see issue 119
259
+ _reader.SaveAndNext();
260
+ if (_reader.CheckNext1('@')){
261
+ _reader.EatWhile([](char ch) { return lislalnum(ch); });
262
+ if (_reader.CheckNext1('}')){
263
+ return TK_NAME;
264
+ }
265
266
+ return '{';
267
268
default: {
269
if (lislalpha(_reader.GetCurrentChar())) /* identifier or reserved word? */
270
{
Test2/src/FormatTest2.cpp
@@ -8,9 +8,7 @@
8
9
int main() {
10
std::string buffer = R"(
11
-local d = {
12
- dddd = 23131;
13
-}
+local d = {@123131}
14
)";
15
16
auto file = std::make_shared<LuaFile>(std::move(buffer));
0 commit comments