Skip to content

Commit

Permalink
restrict first char of identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
miller-time committed Feb 18, 2025
1 parent 461c3c3 commit c4009c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filter/grammar.pest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ quote = _{ "\"" | "'" }
quoted_name = { quoted_char+ }
quoted_char = _{ !(quote) ~ ANY }
prop = _{ "." ~ name }
name = { id_char+ }
name = { ASCII_ALPHA ~ id_char+ }
id_char = _{ ASCII_ALPHANUMERIC | "_" }
labels = _{ "{" ~ label_expr ~ ("," ~ label_expr)* ~ "}" }
label_expr = _{ "\"" ~ label ~ "\"" }
Expand Down

0 comments on commit c4009c7

Please sign in to comment.