linamh/net-libs/webkit-gtk/files/fix-bison-incompatibility.patch

23 lines
463 B
Diff
Raw Normal View History

diff --git a/WebCore/css/CSSGrammar.y b/WebCore/css/CSSGrammar.y
index 9ee9c93..9d0a0c6 100644
--- a/WebCore/css/CSSGrammar.y
+++ b/WebCore/css/CSSGrammar.y
@@ -94,6 +94,8 @@ static int cssyylex(YYSTYPE* yylval, void* parser)
%expect 49
+%nonassoc LOWEST_PREC
+
%left UNIMPORTANT_TOK
%token WHITESPACE SGML_CD
@@ -349,7 +351,7 @@ maybe_charset:
closing_brace:
'}'
- | %prec maybe_sgml TOKEN_EOF
+ | %prec LOWEST_PREC TOKEN_EOF
;
charset: