mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-11-13 22:55:29 +00:00
Changed to allow digits in identifier.
This commit is contained in:
parent
3eded9ea36
commit
fe88c34649
@ -27,7 +27,7 @@ static auto g_grammar = R"(
|
||||
CONDITION_OPERATOR <- < ('==' / '!=' / '<=' / '<' / '>=' / '>') > _
|
||||
TERM_OPERATOR <- < [-+] > _
|
||||
FACTOR_OPERATOR <- < [*/%] > _
|
||||
IDENTIFIER <- < [a-zA-Z_]+ > _
|
||||
IDENTIFIER <- < [a-zA-Z_][a-zA-Z0-9_]* > _
|
||||
|
||||
NUMBER <- < [0-9]+ > _
|
||||
BOOLEAN <- < ('true' / 'false') > _
|
||||
|
Loading…
Reference in New Issue
Block a user