From 2dbcc2639ad28ebfc1bb41eb6380d83134461e5c Mon Sep 17 00:00:00 2001 From: Tab Atkins Jr Date: Mon, 25 Oct 2021 13:26:48 -0700 Subject: [PATCH] Only disallow necessary ident chars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kat Marchán --- SPEC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPEC.md b/SPEC.md index e4d4d75..1af6f1c 100644 --- a/SPEC.md +++ b/SPEC.md @@ -430,7 +430,7 @@ identifier := string | bare-identifier bare-identifier := (unambiguous-ident | numberish-ident | stringish-ident) - keyword unambiguous-ident := (identifier-char - digit - sign - "r") 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 - [\/(){}<>;[]=,"] keyword := boolean | 'null' prop := identifier '=' value