Skip to content

Commit 629bfa8

Browse files
committed
Allow space before ';' in VAL_
Signed-off-by: Michele Guzzinati <michele.guzzinati@hipert.it>
1 parent 8858967 commit 629bfa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static const char *dbc_grammar =
9696
" attribute_definition : \"BA_DEF_\" (<whatever>|<s>|',')* ';' <n> ; \n"
9797
" attribute_value : \"BA_\" (<whatever>|<s>|',')* ';' <n> ; \n"
9898
" val_item : (<s>+ <integer> <s>+ <string>) ; \n"
99-
" val : \"VAL_\" <s>+ <id> <s>+ <name> <val_item>* ';' <n> ; \n"
99+
" val : \"VAL_\" <s>+ <id> <s>+ <name> <val_item>* <s>* ';' <n> ; \n"
100100
" vals : <val>* ; \n"
101101
" mul_val : \"SG_MUL_VAL_\" <s>+ <id> <s>+ <name> <s>+ <name> <s>+ <integer> '-' <integer> ';' <n> ; \n"
102102
" mul_vals : <mul_val>* ; \n"

0 commit comments

Comments
 (0)