Commit 4308ea96 authored by Custom2043's avatar Custom2043
Browse files

fix

parent d4a447aa
No preview for this file type
...@@ -157,14 +157,16 @@ public class Compiler ...@@ -157,14 +157,16 @@ public class Compiler
boolean foundAfterThisLine = false, tokenTransient = false, found = false; boolean foundAfterThisLine = false, tokenTransient = false, found = false;
for (Line l : lines) for (Line l : lines)
{
if (l == currentLine) if (l == currentLine)
foundAfterThisLine = true; foundAfterThisLine = true;
else if (l.header.id.getName().equals(tokenSearch.id.getName())) if (l.header.id.getName().equals(tokenSearch.id.getName()))
{ {
tokenTransient = l.header.trans != null; tokenTransient = l.header.trans != null;
found = true; found = true;
break; break;
} }
}
if (!found) if (!found)
report(new Info(InfoModel.tokenUndeclared, token)); report(new Info(InfoModel.tokenUndeclared, token));
else if (first && foundAfterThisLine) else if (first && foundAfterThisLine)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment