From 85e2488ae23a478b2a1d7d025063535f5b770796 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 13 Jan 2021 15:56:42 -0500 Subject: Match [] as Operator in C lexer --- bin/c11.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/c11.l b/bin/c11.l index dec4cce5..3c951028 100644 --- a/bin/c11.l +++ b/bin/c11.l @@ -38,7 +38,7 @@ width "*"|[0-9]+ } ([-+*/%&|^=!<>]|"<<"|">>")"="? | -[=~.?:]|"++"|"--"|"&&"|"||"|"->" | +[=~.?:]|"["|"]"|"++"|"--"|"&&"|"||"|"->" | sizeof|(_A|alignof) { return Operator; } -- cgit 1.4.1