Only disallow necessary ident chars

Co-authored-by: Kat Marchán <kzm@zkat.tech>
This commit is contained in:
Tab Atkins Jr 2021-10-25 13:26:48 -07:00 committed by GitHub
parent ea1b33521a
commit 2dbcc2639a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ identifier := string | bare-identifier
bare-identifier := (unambiguous-ident | numberish-ident | stringish-ident) - keyword bare-identifier := (unambiguous-ident | numberish-ident | stringish-ident) - keyword
unambiguous-ident := (identifier-char - digit - sign - "r") identifier-char* unambiguous-ident := (identifier-char - digit - sign - "r") identifier-char*
numberish-ident := sign ((identifier-char - digit) identifier-char*)? numberish-ident := sign ((identifier-char - digit) identifier-char*)?
stringish-ident := "r" ((identifier-char - [#"]) identifier-char*)? stringish-ident := "r" ((identifier-char - "#") identifier-char*)?
identifier-char := unicode - linespace - [\/(){}<>;[]=,"] identifier-char := unicode - linespace - [\/(){}<>;[]=,"]
keyword := boolean | 'null' keyword := boolean | 'null'
prop := identifier '=' value prop := identifier '=' value