From 93808fc91f990dbc17a2bc2b350552d9dde89692 Mon Sep 17 00:00:00 2001 From: Shevek Date: Fri, 13 Jun 2008 21:33:42 +0000 Subject: implement Feature.CSYNTAX, Feature.KEEPCOMMENTS, etc --- src/java/org/anarres/cpp/CppReader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/java/org/anarres/cpp/CppReader.java') diff --git a/src/java/org/anarres/cpp/CppReader.java b/src/java/org/anarres/cpp/CppReader.java index 92778e0..a429fd4 100644 --- a/src/java/org/anarres/cpp/CppReader.java +++ b/src/java/org/anarres/cpp/CppReader.java @@ -95,8 +95,9 @@ public class CppReader extends Reader { case EOF: token = null; return false; - case COMMENT: - if (false) { + case CCOMMENT: + case CPPCOMMENT: + if (!cpp.getFeature(Feature.KEEPCOMMENTS)) { token = " "; break; } -- cgit v1.2.3