Skip to content

Commit

Permalink
keep sandbox.resolve for ANTLR2
Browse files Browse the repository at this point in the history
  • Loading branch information
albertocavalcante committed Sep 28, 2024
1 parent 5211584 commit 90fe37d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/org/antlr/bazel/AntlrRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,14 @@ AntlrRules grammars(String... grammars)

for (String grammar : grammars)
{
this.grammars.add(grammar.toString());
if (this.version == Version.V2)
{
this.grammars.add(sandbox.resolve(grammar).toString());
}
else
{
this.grammars.add(grammar);
}
}

return this;
Expand Down

0 comments on commit 90fe37d

Please sign in to comment.