summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-13 15:56:42 -0500
committerJune McEnroe <june@causal.agency>2021-01-13 15:56:42 -0500
commitdbac3d8324155122eb5722c42f9fd855ef5028bb (patch)
tree5da84669a975279c6346112d7f4bd7b692a48363 /bin
parentFix C lexer to require a digit in a float literal (diff)
downloadsrc-dbac3d8324155122eb5722c42f9fd855ef5028bb.tar.gz
src-dbac3d8324155122eb5722c42f9fd855ef5028bb.zip
Match [] as Operator in C lexer
Diffstat (limited to 'bin')
-rw-r--r--bin/c11.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/c11.l b/bin/c11.l
index c889173e..18c0879a 100644
--- a/bin/c11.l
+++ b/bin/c11.l
@@ -38,7 +38,7 @@ width "*"|[0-9]+
 }
 
 ([-+*/%&|^=!<>]|"<<"|">>")"="? |
-[=~.?:]|"++"|"--"|"&&"|"||"|"->" |
+[=~.?:]|"["|"]"|"++"|"--"|"&&"|"||"|"->" |
 sizeof|(_A|alignof) {
 	return Operator;
 }