Permalink
Browse files

Fixing rule calls on Ruby.stg template

  • Loading branch information...
1 parent 922cbbc commit a0711447c03ab3f9e4145fa8e9ce1f90c246cc51 jordi committed Dec 1, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/org/antlr/codegen/templates/Ruby/Ruby.stg
@@ -657,9 +657,9 @@ wildcardCharListLabel(label, elementIndex)::=
ruleRef(rule,label,elementIndex,args,scope) ::=
<<
<if(label)>
-_<label> = <rule>(<args; separator=", ">)<\n>
+_<label> = <rule.name>(<args; separator=", ">)<\n>
<else>
-<rule>(<args; separator=", ">)<\n>
+<rule.name>(<args; separator=", ">)<\n>
<endif>
>>
@@ -685,13 +685,13 @@ lexerRuleRef(rule,label,args,elementIndex,scope)::=
_<label>_start_<elementIndex> = @input.index
_<label>_line_<elementIndex> = @input.line
_<label>_pos_<elementIndex> = @input.column
-match_<rule>(<args; separator=", ">)
+match_<rule.name>(<args; separator=", ">)
_<label> = Token.new(:invalid, 0,
_<label>_line_<elementIndex>,
_<label>_pos_<elementIndex>,
@input.substring(_<label>_start_<elementIndex>, @input.index - 1), nil)
<else>
-match_<rule>(<args; separator=", ">)
+match_<rule.name>(<args; separator=", ">)
<endif>
>>

0 comments on commit a071144

Please sign in to comment.