Burak edited on 2004-12-16 15:01:01.0
|
Actually, the longest match rule applies only to operators and identifiers. Comments are whitespace, and handled differently. The spec probably needs some clarification like "eliding of comments happens before parsing".
So I change "project" to "specification" and reassign to Martin.
|
Burak edited on 2004-12-16 15:01:36.0
|
|
Philippe edited on 2004-12-16 15:30:30.0
|
Note that "eliding of comments happens before parsing" is significantly different from what happens in Java. In Java, comments and tokens are parsed at the same time and the longest match rule applies to everything. This implies that if in Java we changed the syntax of identifiers to the Scala syntax, then "+//-" would be recognised as an identifier.
|
Burak edited on 2004-12-16 16:11:00.0
|
Sure, there has just a choice to be made. In this choice (comments are whitespace, are stripped before parsing), uniform handling of comments outweighs uniform handling of operators.
|
Martin edited on 2006-05-28 21:56:39.0
|
I agree with Burak and close the bug.
|