Skip to content

Commit 00c82c3

Browse files
committed
[css2] Added @charset.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401279
1 parent 72e67a2 commit 00c82c3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

css2/grammar.src

Lines changed: 4 additions & 2 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.11 1998-03-13 15:59:54 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.12 1998-03-20 19:22:27 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>
@@ -43,7 +43,8 @@ used:</P>
4343

4444
<pre>
4545
stylesheet
46-
: [S|CDO|CDC]* [ import [S|CDO|CDC]* ]*
46+
: [ CHARSET_SYM S* STRING S* ';' S* ]?
47+
[S|CDO|CDC]* [ import [S|CDO|CDC]* ]*
4748
[ [ ruleset | media | page | font_face ] [S|CDO|CDC]* ]*
4849
;
4950
import
@@ -193,6 +194,7 @@ range \?{1,6}|{h}(\?{0,5}|{h}(\?{0,4}|{h}(\?{0,3}|{h}(\?{0,2}|{h}(\??|{h})))))
193194
"@page" {return PAGE_SYM;}
194195
"@media" {return MEDIA_SYM;}
195196
"@font-face" {return FONT_FACE_SYM;}
197+
"@charset" {return CHARSET_SYM;}
196198
"@"{ident} {return ATKEYWORD;}
197199

198200
"!{w}important" {return IMPORTANT_SYM;}

0 commit comments

Comments
 (0)