You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tableInsert(tokens, newTokenAt({type="number", value=ppKeywordTok.line, representation=F(" %d ",ppKeywordTok.line)}, ppKeywordTok))-- Is it fine for the representation to have spaces? Probably.
1810
1812
1811
1813
else
1812
1814
-- Expand later.
@@ -1969,7 +1971,7 @@ local function doLateExpansions(tokensToExpand, fileBuffers, params, stats)
1969
1971
errorAtToken(fileBuffers, tableStartTok, nil, "Macro", "Syntax error: Could not find end of table constructor before EOF.")
1970
1972
1971
1973
elseiftok.type:find"^pp_" then
1972
-
errorAtToken(fileBuffers, tok, nil, "Macro", "Preprocessor code not supported in macros. (Macro starts %s)", getRelativeLocationText(ppKeywordTok, tok))
1974
+
errorAtToken(fileBuffers, tok, nil, "Macro", "Non-simple preprocessor code not supported in macros. (Macro starts %s)", getRelativeLocationText(ppKeywordTok, tok))
1973
1975
1974
1976
elseifbracketDepth==1andisToken(tok, "punctuation", "}") then
1975
1977
tableInsert(argTokens, table.remove(tokenStack))
@@ -2047,7 +2049,7 @@ local function doLateExpansions(tokensToExpand, fileBuffers, params, stats)
2047
2049
errorAtToken(fileBuffers, parensStartTok, nil, "Macro", "Syntax error: Could not find end of argument list before EOF.")
2048
2050
2049
2051
elseiftok.type:find"^pp_" then
2050
-
errorAtToken(fileBuffers, tok, nil, "Macro", "Preprocessor code not supported in macros. (Macro starts %s)", getRelativeLocationText(ppKeywordTok, tok))
2052
+
errorAtToken(fileBuffers, tok, nil, "Macro", "Non-simple preprocessor code not supported in macros. (Macro starts %s)", getRelativeLocationText(ppKeywordTok, tok))
2051
2053
2052
2054
elseifnotdepthStack[1] and (isToken(tok, "punctuation", ",") orisToken(tok, "punctuation", ")")) then
2053
2055
break
@@ -2138,7 +2140,7 @@ local function doLateExpansions(tokensToExpand, fileBuffers, params, stats)
0 commit comments