summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/Lexer4
-rw-r--r--docs/Tokens2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/Lexer b/docs/Lexer
index e945f9b..23626d1 100644
--- a/docs/Lexer
+++ b/docs/Lexer
@@ -12,8 +12,8 @@ ATKEYWORD '@'
STRING '"' | "'"
INVALID_STRING '"' | "'"
HASH '#'
-NUMBER [0-9] | '.'
-PERCENTAGE [0-9] | '.'
+NUMBER [0-9] | '.' | '-' | '+'
+PERCENTAGE [0-9] | '.' | '-' | '+'
DIMENSION [0-9] | '.'
URI [Uu]
UNICODE-RANGE [Uu]
diff --git a/docs/Tokens b/docs/Tokens
index b912f3c..907fabd 100644
--- a/docs/Tokens
+++ b/docs/Tokens
@@ -14,7 +14,7 @@ nonascii ::= [#x80-#xD7FF#xE000-#xFFFD#x10000-#x10FFFF]
unicode ::= '\' [0-9a-fA-F]{1,6} wc?
escape ::= unicode | '\' [^\n\r\f0-9a-fA-F]
nmchar ::= [a-zA-Z0-9] | '-' | '_' | nonascii | escape
-num ::= [0-9]+ | [0-9]* '.' [0-9]+
+num ::= [-+]? ([0-9]+ | [0-9]* '.' [0-9]+)
string ::= '"' (stringchar | "'")* '"' | "'" (stringchar | '"')* "'"
stringchar ::= urlchar | #x20 | #x29 | '\' nl
urlchar ::= [#x9#x21#x23-#x26#x28#x2A-#x7E] | nonascii | escape