diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-26 06:00:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-26 06:00:52 +0000 |
commit | 32865ef821a045b1bf14c4cfcfc52c70125b3794 (patch) | |
tree | 8a6d594fa57ef58d6e7c9b5603cdb5840b26ee90 /parse.y | |
parent | 27b35eddd6ee9f5844c636f8201f09281e32d9bb (diff) | |
download | ruby-32865ef821a045b1bf14c4cfcfc52c70125b3794.tar.gz |
* misc/ruby-style.el (ruby-style-{case,label}-indent): adjust for
labels inside switch block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -5870,11 +5870,11 @@ parser_yylex(struct parser_params *parser) space_seen++; break; case '.': { - if ((c = nextc()) != '.') { - pushback(c); - pushback('.'); - goto retry; - } + if ((c = nextc()) != '.') { + pushback(c); + pushback('.'); + goto retry; + } } default: pushback(c); @@ -5903,7 +5903,7 @@ parser_yylex(struct parser_params *parser) return tOP_ASGN; } pushback(c); - if (IS_ARG() && space_seen && !ISSPACE(c)){ + if (IS_ARG() && space_seen && !ISSPACE(c)) { rb_warning0("`*' interpreted as argument prefix"); c = tSTAR; } @@ -6084,8 +6084,8 @@ parser_yylex(struct parser_params *parser) compile_error(PARSER_ARG "incomplete character syntax"); return 0; } - if (rb_enc_isspace(c, parser->enc)){ - if (!IS_ARG()){ + if (rb_enc_isspace(c, parser->enc)) { + if (!IS_ARG()) { int c2 = 0; switch (c) { case ' ': @@ -6156,7 +6156,7 @@ parser_yylex(struct parser_params *parser) return tOP_ASGN; } pushback(c); - if (IS_ARG() && space_seen && !ISSPACE(c)){ + if (IS_ARG() && space_seen && !ISSPACE(c)) { rb_warning0("`&' interpreted as argument prefix"); c = tAMPER; } |