Permalink
Browse files

+ Lexer now embeds line number in yacc_value for keywords, helping fi…

…x up line numbers

[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 6579]
  • Loading branch information...
1 parent c8a9111 commit 0defeca80a5546e8bda42433cf4d737464290aa4 @zenspider zenspider committed Aug 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ruby_lexer.rb
View
@@ -1249,7 +1249,7 @@ def process_token(command_state)
if keyword then
state = lex_state
self.lex_state = keyword.state
- self.yacc_value = token
+ self.yacc_value = [token, src.lineno]
if keyword.id0 == :kDO then
self.command_start = true

0 comments on commit 0defeca

Please sign in to comment.