From cf6967de0ad4320801507ca72ed48f6305b6536a Mon Sep 17 00:00:00 2001 From: "benjamin.franksen" <benjamin.franksen@helmholtz-berlin.de> Date: Wed, 9 Oct 2013 21:32:04 +0000 Subject: [PATCH] snc: allow C++ style comments This change is no more than a one line addition to the lexer spec! --- src/snc/snl.re | 1 + 1 file changed, 1 insertion(+) diff --git a/src/snc/snl.re b/src/snc/snl.re index 4d5a0c87..5ac68fd5 100644 --- a/src/snc/snl.re +++ b/src/snc/snl.re @@ -218,6 +218,7 @@ snl: goto string_const; } "/*" { goto comment; } + "//" .* { goto snl; } "%{" { s->tok = cursor; in_c_code = 1; -- GitLab