From 83fa03bbc9b60f0ac4689c0a719d93cbf199367c Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 2 May 2017 00:02:24 +0300 Subject: validator.rl: Allow multiple filters --- src/fspec/validator.rl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fspec/validator.rl b/src/fspec/validator.rl index 093348d..c919867 100644 --- a/src/fspec/validator.rl +++ b/src/fspec/validator.rl @@ -202,7 +202,7 @@ struct state { OP_FILTER = 5 (OP_ARG_STR (OP_ARG_NUM | OP_ARG_VAR | OP_ARG_STR)*) $!op_error; OP_VISUAL = 6 (OP_ARG_NUM %check_visual_type) $!op_error; - pattern = (OP_DECLARATION %check_struct <: (OP_DECLARATION %check_member (OP_READ | OP_GOTO) OP_FILTER? OP_VISUAL? %check_member_end)*)* %check_struct_end $!pattern_error; + pattern = (OP_DECLARATION %check_struct <: (OP_DECLARATION %check_member (OP_READ | OP_GOTO) OP_FILTER* OP_VISUAL? %check_member_end)*)* %check_struct_end $!pattern_error; main := (OP_HEADER <: pattern) %check_decls $advance $!syntax_error; }%% -- cgit v1.2.3-70-g09d2