lib/lrama/output.rb in lrama-0.5.4 vs lib/lrama/output.rb in lrama-0.5.5
- old
+ new
@@ -250,10 +250,10 @@
""
end
end
def extract_param_name(param)
- /\A(\W*)([a-zA-Z0-9_]+)\z/.match(param.split.last)[2]
+ param[/\b([a-zA-Z0-9_]+)(?=\s*\z)/]
end
def parse_param_name
if @grammar.parse_param
extract_param_name(parse_param)