diff options
author | Shevek <[email protected]> | 2008-06-13 21:33:42 +0000 |
---|---|---|
committer | Shevek <[email protected]> | 2008-06-13 21:33:42 +0000 |
commit | 93808fc91f990dbc17a2bc2b350552d9dde89692 (patch) | |
tree | 508a92ebea86484622da1dff249fd118889f8bce /src/java/org/anarres/cpp/CppReader.java | |
parent | 4528d72b75208f21f8d5e7d72991b7d34b4e46cf (diff) |
implement Feature.CSYNTAX, Feature.KEEPCOMMENTS, etc
Diffstat (limited to 'src/java/org/anarres/cpp/CppReader.java')
-rw-r--r-- | src/java/org/anarres/cpp/CppReader.java | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |