[svn] r5860: nemerle/trunk/ncc: parsing/PreParserIndent.n
testsuite/positive/indentation-syntax.n
malekith
svnadmin at nemerle.org
Fri Oct 28 00:24:47 CEST 2005
Log:
Don't treat indented | as continuation. Makes matching work.
Author: malekith
Date: Fri Oct 28 00:24:47 2005
New Revision: 5860
Modified:
nemerle/trunk/ncc/parsing/PreParserIndent.n
nemerle/trunk/ncc/testsuite/positive/indentation-syntax.n
Modified: nemerle/trunk/ncc/parsing/PreParserIndent.n
==============================================================================
--- nemerle/trunk/ncc/parsing/PreParserIndent.n (original)
+++ nemerle/trunk/ncc/parsing/PreParserIndent.n Fri Oct 28 00:24:47 2005
@@ -226,7 +226,7 @@
// If we've indented further than the previous line
else {
match (tok) {
- | Token.Operator =>
+ | Token.Operator (x) when x != "|" =>
handle_real_token (tok)
| _ =>
Modified: nemerle/trunk/ncc/testsuite/positive/indentation-syntax.n
==============================================================================
--- nemerle/trunk/ncc/testsuite/positive/indentation-syntax.n (original)
+++ nemerle/trunk/ncc/testsuite/positive/indentation-syntax.n Fri Oct 28 00:24:47 2005
@@ -40,6 +40,10 @@
)
def d = a +
c
+ match ("foo")
+ | "bar" => {}
+ | "foo" => {}
+ | _ => {}
WriteLine($"c = $c, d = $d")
WriteLine(SomeField)
More information about the svn
mailing list