Skip to content

Commit

Permalink
MATE: Change Include syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbasnmp authored Apr 29, 2024
1 parent 826dddd commit 2440b0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/epan/mate/mate_parser.l
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ avp_operator [$^~=<>!]
quote ["]
not_quoted [^"]*

include "#include"
/* include "#include" */
include_kw Include
filename [-A-Za-z0-9_/.]+

whitespace [[:blank:]\r]+
Expand All @@ -216,7 +217,7 @@ blk_cmnt_stop "*/"
{newline} yyextra->current_frame->linenum++;
{whitespace} ;

<OUTSIDE>{include} BEGIN INCLUDING;
<OUTSIDE>{include_kw} BEGIN INCLUDING;

<INCLUDING>{filename} {
if ( yyextra->include_stack_ptr >= MAX_INCLUDE_DEPTH )
Expand Down

0 comments on commit 2440b0d

Please sign in to comment.