diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-15 15:15:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-15 15:15:45 +0000 |
commit | 093595801f7d8d3f31d87b2a1dd8ea6f8553feda (patch) | |
tree | 44db4dd66493151443c6375945cae62edb2ca0c2 /parse.y | |
parent | da23c37a3144448805135fcacee7ca9c4a6550da (diff) |
* parse.y (yylex): disallow alpha-numeric and mbchar for
terminator of %string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3528,6 +3528,10 @@ yylex() } else { term = nextc(); + if (ISALNUM(term) || ismbchar(term)) { + yyerror("unknown type of %string"); + return 0; + } } if (c == -1 || term == -1) { rb_compile_error("unterminated quoted string meets end of file"); |