summaryrefslogtreecommitdiff
path: root/bpf_lexer.l
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-09-06 11:03:20 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-09-06 11:03:20 +0200
commit382b08547cc61faf10d94cffef890ce0dc85609c (patch)
tree78f52958ae09f048ceec77acc27427e616ca5274 /bpf_lexer.l
parent220e83ebb195e958e36ea7ed13c54b61d23e6558 (diff)
bpfc: add gnu as style %-register prefix
Let a and x register also be addressed as %x and %a. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'bpf_lexer.l')
-rw-r--r--bpf_lexer.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/bpf_lexer.l b/bpf_lexer.l
index 185faae..26accbc 100644
--- a/bpf_lexer.l
+++ b/bpf_lexer.l
@@ -91,6 +91,7 @@ label [a-zA-Z_][a-zA-Z0-9_]+
":" { return ':'; }
"," { return ','; }
"#" { return '#'; }
+"%" { return '%'; }
"[" { return '['; }
"]" { return ']'; }
"(" { return '('; }