ruby_parser
Advanced tools
+10
-0
@@ -0,1 +1,11 @@ | ||
| === 3.0.3 / 2012-11-23 | ||
| * 1 minor enhancement: | ||
| * Improved error output on invalid char in expression. | ||
| * 1 bug fix: | ||
| * Fixed lexing of no-name ivars. (whitequark) | ||
| === 3.0.2 / 2012-11-21 | ||
@@ -2,0 +12,0 @@ |
@@ -777,3 +777,3 @@ # encoding: US-ASCII | ||
| return :tSTRING_BEG | ||
| elsif src.scan(/\@\@?\w*/) then | ||
| elsif src.scan(/\@\@?\w+/) then | ||
| self.token = src.matched | ||
@@ -1248,5 +1248,4 @@ | ||
| else # alpha check | ||
| unless src.check IDENT_RE then | ||
| rb_compile_error "Invalid char #{src.matched.inspect} in expression" | ||
| end | ||
| rb_compile_error "Invalid char #{src.rest[0].chr} in expression" unless | ||
| src.check IDENT_RE | ||
| end | ||
@@ -1424,3 +1423,2 @@ | ||
| self.lex_state = :expr_end if | ||
@@ -1427,0 +1425,0 @@ last_state != :expr_dot && self.parser.env[token.to_sym] == :lvar |
@@ -111,3 +111,3 @@ # encoding: ASCII-8BIT | ||
| module RubyParserStuff | ||
| VERSION = '3.0.2' unless constants.include? "VERSION" # SIGH | ||
| VERSION = '3.0.3' unless constants.include? "VERSION" # SIGH | ||
@@ -114,0 +114,0 @@ attr_accessor :lexer, :in_def, :in_single, :file |
@@ -976,2 +976,6 @@ #!/usr/local/bin/ruby | ||
| def test_yylex_ivar_bad_0_length | ||
| util_bad_token "1+@\n", :tINTEGER, 1, :tPLUS, "+" | ||
| end | ||
| def test_yylex_keyword_expr | ||
@@ -1973,2 +1977,1 @@ @lex.lex_state = :expr_endarg | ||
| end | ||