forked from mirrors/jj
templater: disallow identifier starting with number
This commit is contained in:
parent
fe8c41bbd7
commit
353d915326
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ literal_char = @{ !("\"" | "\\") ~ ANY }
|
||||||
raw_literal = @{ literal_char+ }
|
raw_literal = @{ literal_char+ }
|
||||||
literal = { "\"" ~ (raw_literal | escape)* ~ "\"" }
|
literal = { "\"" ~ (raw_literal | escape)* ~ "\"" }
|
||||||
|
|
||||||
identifier = @{ (ASCII_ALPHANUMERIC | "_")+ }
|
identifier = @{ (ASCII_ALPHA | "_") ~ (ASCII_ALPHANUMERIC | "_")* }
|
||||||
|
|
||||||
function = { identifier ~ "(" ~ function_arguments ~ ")" }
|
function = { identifier ~ "(" ~ function_arguments ~ ")" }
|
||||||
function_arguments = {
|
function_arguments = {
|
||||||
|
|
Loading…
Reference in a new issue