mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
bifcl: builtin-func.l: Allow more than just one additional component
I'm not sure why this was restricted to only two components, the following appears functional in Zeek scripts. module A::B::C; export { type MyRecord: record { a: string; }; } Closes #25.
This commit is contained in:
parent
8e295df115
commit
efb32d31fc
1 changed files with 1 additions and 4 deletions
|
@ -37,11 +37,8 @@ int check_c_mode(int t)
|
||||||
|
|
||||||
WS [ \t]+
|
WS [ \t]+
|
||||||
OWS [ \t]*
|
OWS [ \t]*
|
||||||
/* Note, bifcl only accepts a single "::" in IDs while the policy
|
|
||||||
layer acceptes multiple. (But the policy layer doesn't have
|
|
||||||
a hierachy. */
|
|
||||||
IDCOMPONENT [A-Za-z_][A-Za-z_0-9]*
|
IDCOMPONENT [A-Za-z_][A-Za-z_0-9]*
|
||||||
ID {IDCOMPONENT}(::{IDCOMPONENT})?
|
ID {IDCOMPONENT}(::{IDCOMPONENT})*
|
||||||
ESCSEQ (\\([^\n]|[0-7]+|x[[:xdigit:]]+))
|
ESCSEQ (\\([^\n]|[0-7]+|x[[:xdigit:]]+))
|
||||||
DEC [[:digit:]]+
|
DEC [[:digit:]]+
|
||||||
HEX [0-9a-fA-F]+
|
HEX [0-9a-fA-F]+
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue