aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-08-03 21:40:23 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-08-03 21:40:23 -0400
commit6c559b49b2203c4815d652ab4501099be652f8d3 (patch)
tree7c88d3f1dca2f65decc7c3894bf4904c45d33183
parent8c59ccd6e23ac63d59f5839ad410c04b393ff0c0 (diff)
Fix Comment parsing
-rw-r--r--pc.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/pc.l b/pc.l
index 657f080..509b6cf 100644
--- a/pc.l
+++ b/pc.l
@@ -17,15 +17,15 @@ id [A-Za-z][A-Za-z0-9_]*
%%
-<COMMENT>. {}
-<COMMENT>\n {}
-
^[ \t]*"{" {BEGIN COMMENT;}
<COMMENT>"}" {BEGIN INITIAL;}
^[ \t]*"(*" {BEGIN COMMENT;}
<COMMENT>"*)" {BEGIN INITIAL;}
+<COMMENT>. {}
+<COMMENT>\n {}
+
{whitespace} ;