css: Rewrite the parser
authorBenjamin Otte <otte@redhat.com>
Thu, 14 Apr 2011 02:47:18 +0000 (04:47 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 20:17:55 +0000 (22:17 +0200)
commit7ccb9db79e702e507dedf211ed25787be2f32721
treeea1f4e802eeeb04c74bbbc08f82705f12db1586a
parent058bbb2aec58a8c4c5184d63d7eddfa52ab91289
css: Rewrite the parser

Instead of relying on GScanner and its idea of syntax, code up a parser
that obeys the CSS spec.
This also has the great side effect of reporting correct line numbers
and positions.

Also included is a reorganization of the returned error values. Instead
of error values describing what type of syntax error was returned, the
code just returns SYNTAX_ERROR. Other messages exist for when actual
values don't work or when errors shouldn't be fatal due to backwards
compatibility.
gtk/Makefile.am
gtk/gtkcssparser.c [new file with mode: 0644]
gtk/gtkcssparserprivate.h [new file with mode: 0644]
gtk/gtkcssprovider.c
gtk/gtkcssprovider.h
gtk/gtkcssstringfuncs.c
gtk/gtkcssstringfuncsprivate.h
tests/css/parser/boolean.errors
tests/css/parser/border.errors
tests/css/parser/does-not-exist.errors
tests/css/parser/integer.errors