aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-09-19 10:08:16 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-09-19 10:08:16 +0000
commit67ab24f60aebc584921ef2baaebcae420700d85f (patch)
tree98f86621c495c634abdb3194faf54307fae1076a /src
parent72c2fa647583bd45aa5802cf2a82cebdaade6b8e (diff)
downloadcflow-67ab24f60aebc584921ef2baaebcae420700d85f.tar.gz
cflow-67ab24f60aebc584921ef2baaebcae420700d85f.tar.bz2
Support BCPL style comments
Diffstat (limited to 'src')
-rw-r--r--src/c.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/c.l b/src/c.l
index 736c1ec..ba1404b 100644
--- a/src/c.l
+++ b/src/c.l
@@ -47,6 +47,7 @@ IDENT [a-zA-Z_][a-zA-Z0-9_]*
WS [ \t\f\r]*
%%
/* comments */
+"//".*\n ++line_num;
"/*" BEGIN(comment);
<comment>[^*\n]* ;
<comment>[^*\n]*\n ++line_num;

Return to:

Send suggestions and report system problems to the System administrator.