From 24c572d05536f719e87ca0712fd5571a0a210785 Mon Sep 17 00:00:00 2001 From: parrt Date: Mon, 26 Dec 2011 17:14:29 -0800 Subject: [PATCH] oops. antlr was ok, it was javalr grammar. [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9754] --- tool/playground/JavaLR.g4 | 2 +- tool/playground/TestJavaLR.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/playground/JavaLR.g4 b/tool/playground/JavaLR.g4 index 52f164d9d..8d17f168a 100644 --- a/tool/playground/JavaLR.g4 +++ b/tool/playground/JavaLR.g4 @@ -820,7 +820,7 @@ WS : (' '|'\r'|'\t'|'\u000C'|'\n')+ {$channel=HIDDEN;} ; COMMENT - : '/*' . '*/' {$channel=HIDDEN;} + : '/*' .* '*/' {$channel=HIDDEN;} ; LINE_COMMENT diff --git a/tool/playground/TestJavaLR.java b/tool/playground/TestJavaLR.java index 2b93a677f..c4f2bc137 100644 --- a/tool/playground/TestJavaLR.java +++ b/tool/playground/TestJavaLR.java @@ -101,7 +101,7 @@ class TestJavaLR { f.getName().substring(f.getName().length()-5).equals(".java")) || f.getName().equals("input") ) { -// System.err.println(f.getAbsolutePath()); + System.err.println(f.getAbsolutePath()); parseFile(f.getAbsolutePath()); } }