diff options
author | Paul Phillips <paulp@improving.org> | 2009-02-10 17:51:32 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-02-10 17:51:32 +0000 |
commit | 8d017c0f1e3478f2736a8df624492b73190b0976 (patch) | |
tree | 53576dda6521a9c96573f983e00dcd4ab4977adc /src/compiler | |
parent | 7681434a9278f50b673880e9a2ede4c1d57a679d (diff) | |
download | scala-8d017c0f1e3478f2736a8df624492b73190b0976.tar.gz scala-8d017c0f1e3478f2736a8df624492b73190b0976.tar.bz2 scala-8d017c0f1e3478f2736a8df624492b73190b0976.zip |
Removes underscore from the list of characters ...
Removes underscore from the list of characters used during semicolon
inference which it believes cannot start a statement on a new line,
fixing bug #756; adds 1 test case, updates 1.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala b/src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala index ec5354c507..dfb0d2878f 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala @@ -717,7 +717,7 @@ trait NewScanners { } def inFirstOfStat(token: Int) = token match { case EOF | /*CASE |*/ CATCH | ELSE | EXTENDS | FINALLY | MATCH | REQUIRES | WITH | YIELD | - COMMA | SEMI | NEWLINE | NEWLINES | DOT | USCORE | COLON | EQUALS | ARROW | + COMMA | SEMI | NEWLINE | NEWLINES | DOT | COLON | EQUALS | ARROW | /* | USCORE - bug #756 */ LARROW | SUBTYPE | VIEWBOUND | SUPERTYPE | HASH | // todo: add LBRACKET RPAREN | RBRACKET | RBRACE => false case _ => true |