]> granicus.if.org Git - flex/commitdiff
Put definitions inside ()'s so we can test -l option for "make bigcheck"
authorVern Paxson <vern@ee.lbl.gov>
Fri, 26 Nov 1993 16:09:24 +0000 (16:09 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Fri, 26 Nov 1993 16:09:24 +0000 (16:09 +0000)
scan.l

diff --git a/scan.l b/scan.l
index 8686db1fbb0d1114347ccb3f15bbf579dfefe7a8..07967fbb1d929e28ec644e88647d00a3d7fad0c2 100644 (file)
--- a/scan.l
+++ b/scan.l
@@ -68,17 +68,17 @@ WS          [ \t]+
 OPTWS          [ \t]*
 NOT_WS         [^ \t\n]
 
-NL             \n|\r\n|\n\r
+NL             (\n|\r\n|\n\r)
 
-NAME           [a-z_][a-z_0-9-]*
+NAME           ([a-z_][a-z_0-9-]*)
 NOT_NAME       [^a-z_*\n]+
 
 SCNAME         {NAME}
 
-ESCSEQ         \\([^\n]|[0-9]{1,3}|x[0-9a-f]{1,2})
+ESCSEQ         (\\([^\n]|[0-9]{1,3}|x[0-9a-f]{1,2}))
 
-FIRST_CCL_CHAR [^\\\n]|{ESCSEQ}
-CCL_CHAR       [^\\\n\]]|{ESCSEQ}
+FIRST_CCL_CHAR ([^\\\n]|{ESCSEQ})
+CCL_CHAR       ([^\\\n\]]|{ESCSEQ})
 
 %%
        static int bracelevel, didadef, indented_code, checking_used;