Skip to content

Commit f95fffd

Browse files
committed
[css2] Fixed bug in pattern for comments.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402008
1 parent 15acd6b commit f95fffd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

css2/grammar.src

Lines changed: 2 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.28 2003-01-15 17:46:33 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.29 2003-01-15 18:29:44 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Appendix: grammar of CSS&nbsp;2.1</TITLE>
@@ -168,7 +168,7 @@ range \?{1,6}|{h}(\?{0,5}|{h}(\?{0,4}|{h}(\?{0,3}|{h}(\?{0,2}|{h}(\??|{h})))))
168168

169169
[ \t\r\n\f]+ {return S;}
170170

171-
\/\*[^*]*\*+([^/][^*]*\*+)*\/ /* ignore comments */
171+
\/\*[^*]*\*+([^/*][^*]*\*+)*\/ /* ignore comments */
172172

173173
"&lt;!--" {return CDO;}
174174
"-->" {return CDC;}

css2/syndata.src

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
22
"http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
33
<html lang="en">
4-
<!-- $Id: syndata.src,v 2.78 2002-12-17 19:13:01 bbos Exp $ -->
4+
<!-- $Id: syndata.src,v 2.79 2003-01-15 18:29:22 bbos Exp $ -->
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
77
<title>Syntax and basic data types</title>
@@ -72,7 +72,7 @@ Lex, in case of multiple matches, the longest match determines the token.
7272
<tr><td>[ </td><td><code>\[</code></td></tr>
7373
<tr><td>] </td><td><code>\]</code></td></tr>
7474
<tr><td>S </td><td><code>[ \t\r\n\f]+</code></td></tr>
75-
<tr><td>COMMENT </td><td><code>\/\*[^*]*\*+([^/][^*]*\*+)*\/</code></td></tr>
75+
<tr><td>COMMENT </td><td><code>\/\*[^*]*\*+([^/*][^*]*\*+)*\/</code></td></tr>
7676
<tr><td>FUNCTION </td><td><code><var>{ident}</var>\(</code></td></tr>
7777
<tr><td>INCLUDES </td><td><code>~=</code></td></tr>
7878
<tr><td>DASHMATCH </td><td><code>|=</code></td></tr>

0 commit comments

Comments
 (0)