Skip to content

Commit

Permalink
facepalm: forgot the full grammar change for float keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Feb 13, 2024
1 parent e773747 commit 2710c90
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ equals-sign := See Table ([Equals Sign](#equals-sign))
string := identifier-string | quoted-string | raw-string
identifier-string := unambiguous-ident | signed-ident | dotted-ident
unambiguous-ident := ((identifier-char - digit - sign - '.') identifier-char*) - 'true' - 'false' - 'null'
unambiguous-ident := ((identifier-char - digit - sign - '.') identifier-char*) - 'true' - 'false' - 'null' - 'inf' - '-inf' - 'nan'
signed-ident := sign ((identifier-char - digit - '.') identifier-char*)?
dotted-ident := sign? '.' ((identifier-char - digit) identifier-char*)?
identifier-char := unicode - unicode-space - newline - [\\/(){};\[\]"#] - disallowed-literal-code-points - equals-sign
Expand All @@ -763,7 +763,7 @@ raw-string-quotes := '"' (single-line-raw-string-body | newline multi-line-raw-s
single-line-raw-string-body := (unicode - newline - disallowed-literal-code-points)*
multi-line-raw-string-body := (unicode - disallowed-literal-code-points)*
number := hex | octal | binary | decimal
number := keyword-number | hex | octal | binary | decimal
decimal := sign? integer ('.' integer)? exponent?
exponent := ('e' | 'E') sign? integer
Expand All @@ -775,7 +775,9 @@ hex := sign? '0x' hex-digit (hex-digit | '_')*
octal := sign? '0o' [0-7] [0-7_]*
binary := sign? '0b' ('0' | '1') ('0' | '1' | '_')*
keyword := boolean | '#null'
keyword := keyword-number | boolean | '#null'
keyword-number := '#inf' | '#-inf' | '#nan'
boolean := '#true' | '#false'
Expand Down

0 comments on commit 2710c90

Please sign in to comment.