diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-03-06 23:20:32 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-03-06 23:20:32 +0000 |
commit | 8f999376d56043ffb4c5fa8310e4eb65a5567e23 (patch) | |
tree | 234667cb74746070761af45bb511c524df25d3f2 /css/scanner.l | |
parent | 10a339e41dd0325f32792c5a486b0113dc62fbbb (diff) | |
download | netsurf-8f999376d56043ffb4c5fa8310e4eb65a5567e23.tar.gz netsurf-8f999376d56043ffb4c5fa8310e4eb65a5567e23.tar.bz2 |
Bring definition of {escape} in line with CSS 2.1 spec.
Require units when parsing css lengths.
Correctly ignore background: meta-properties which have multiple instances of sub-properties (e.g. foo { background: red pink; })
svn path=/trunk/netsurf/; revision=3893
Diffstat (limited to 'css/scanner.l')
-rw-r--r-- | css/scanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/css/scanner.l b/css/scanner.l index caac2c352..91574954e 100644 --- a/css/scanner.l +++ b/css/scanner.l @@ -46,7 +46,7 @@ start: /*!re2c nonascii = [\200-\377]; unicode = "\\" [0-9a-f]+ ("\r\n" | [ \n\r\t\f])?; -escape = unicode | "\\" [ -~\200-\377]; +escape = unicode | "\\" [^\n\r\f0-9a-f]; nmchar = [-a-zA-Z0-9_] | nonascii | escape; nmstart = [a-zA-Z_] | nonascii | escape; ident = [-]? nmstart nmchar*; |