Skip to content

Commit 7876fc0

Browse files
committed
[css2] Added optional whitespace after hexadecimal escape sequence.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40860
1 parent f33e9d5 commit 7876fc0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

css2/grammar.src

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: grammar.src,v 2.1 1998-02-02 23:18:44 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.2 1998-02-10 23:57:44 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Appendix D: The grammar of CSS2</TITLE>
@@ -151,12 +151,13 @@ possible code point in <span class="index-inst"
151151
title="unicode">Unicode</span>/<span class="index-inst"
152152
title="iso-10646">ISO-10646</span>.
153153

154+
<!-- ignored whitespace after Unicode escape, is it OK? -->
154155
<pre>
155156
%option case-insensitive
156157

157158
h [0-9a-f]
158159
nonascii [\200-\377]
159-
unicode \\{h}{1,6}
160+
unicode \\{h}{1,6}[ \t\r\n\f]?
160161
escape {unicode}|\\[ -~\200-\377]
161162
nmstart [a-z]|{nonascii}|{escape}
162163
nmchar [a-z0-9-]|{nonascii}|{escape}
@@ -194,7 +195,7 @@ range {h}(\?{0,5}|{h}(\?{0,4}|{h}(\?{0,3}|{h}(\?{0,2}|{h}(\??|{h})))))
194195
"@font-face" {return FONT_FACE_SYM;}
195196
"@"{ident} {return ATKEYWORD;}
196197

197-
"!"[ \t\r\n\f]*"important" {return IMPORTANT_SYM;}
198+
"!important" {return IMPORTANT_SYM;}
198199

199200
{num}em {return EMS;}
200201
{num}ex {return EXS;}

0 commit comments

Comments
 (0)