diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-05-20 00:23:21 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-05-20 00:23:21 +0000 |
commit | 76b814183691e731a6d6e564fcc0e98ddac4adf3 (patch) | |
tree | fd936e66cc29d1b78a7379451da8007bab780a43 /src/lex | |
parent | 87f5e1f3d54f65c9a653c80217721453d3b8ba26 (diff) | |
download | libcss-76b814183691e731a6d6e564fcc0e98ddac4adf3.tar.gz libcss-76b814183691e731a6d6e564fcc0e98ddac4adf3.tar.bz2 |
Pedantic linewrapping
Flag todo relating to handling of unexpected end of string
svn path=/trunk/libcss/; revision=4185
Diffstat (limited to 'src/lex')
-rw-r--r-- | src/lex/lex.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lex/lex.c b/src/lex/lex.c index 044bc1a..f184a7c 100644 --- a/src/lex/lex.c +++ b/src/lex/lex.c @@ -36,8 +36,8 @@ #include "utils/parserutilserror.h" /** \todo Optimisation -- we're currently revisiting a bunch of input - * characters (Currently, we're calling parserutils_inputstream_peek about - * 1.5x the number of characters in the input stream). Ideally, + * characters (Currently, we're calling parserutils_inputstream_peek + * about 1.5x the number of characters in the input stream). Ideally, * we'll visit each character in the input exactly once. In reality, * the upper bound is twice, due to the need, in some cases, to read * one character beyond the end of a token's input to detect the end @@ -1794,6 +1794,12 @@ css_error consumeString(css_lexer *lexer) * The open quote has been consumed. */ + /** \todo Handle unexpected end of string correctly - CSS 2.1 $4.2 + * Need to flag the string as being in error (within token, so the + * parser can discard the construct in which the string was found). + * This does not apply in the EOF case. In that case, we must act + * as described in "Unexpected end of style sheet" and simply close + * the string */ do { cptr = parserutils_inputstream_peek(lexer->input, lexer->bytesReadForToken, &clen); |