OLD | NEW |
---|---|
1 %{ | 1 %{ |
2 | 2 |
3 /* | 3 /* |
4 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org) | 4 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved. |
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
7 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
8 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1620 operator: | 1620 operator: |
1621 slash_operator | 1621 slash_operator |
1622 | ',' maybe_space { | 1622 | ',' maybe_space { |
1623 $$ = ','; | 1623 $$ = ','; |
1624 } | 1624 } |
1625 ; | 1625 ; |
1626 | 1626 |
1627 term: | 1627 term: |
1628 unary_term maybe_space | 1628 unary_term maybe_space |
1629 | unary_operator unary_term maybe_space { $$ = $2; $$.fValue *= $1; } | 1629 | unary_operator unary_term maybe_space { $$ = $2; $$.fValue *= $1; } |
1630 | STRING maybe_space { $$.id = CSSValueInvalid; $$.isInt = false; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_STRING; } | 1630 | STRING maybe_space { $$.id = CSSValueInvalid; $$.isInt = false; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_CUSTOM_IDENT; } |
Timothy Loh
2015/03/03 23:20:15
These are still <string>s though, right?
| |
1631 | IDENT maybe_space { $$ = makeIdentValue($1); } | 1631 | IDENT maybe_space { $$ = makeIdentValue($1); } |
1632 /* We might need to actually parse the number from a dimension, but we can't j ust put something that uses $$.string into unary_term. */ | 1632 /* We might need to actually parse the number from a dimension, but we can't j ust put something that uses $$.string into unary_term. */ |
1633 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = fals e; $$.unit = CSSParserValue::Dimension; } | 1633 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = fals e; $$.unit = CSSParserValue::Dimension; } |
1634 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2; $$.isInt = false; $$.unit = CSSParserValue::Dimension; } | 1634 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2; $$.isInt = false; $$.unit = CSSParserValue::Dimension; } |
1635 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false; $$.unit = CSSPrimitiveValue::CSS_URI; } | 1635 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false; $$.unit = CSSPrimitiveValue::CSS_URI; } |
1636 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE; } | 1636 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE; } |
1637 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false; $$.unit = CSSParserValue::HexColor; } | 1637 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false; $$.unit = CSSParserValue::HexColor; } |
1638 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$ .isInt = false; $$.unit = CSSParserValue::HexColor; } /* Handle error case: "col or: #;" */ | 1638 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$ .isInt = false; $$.unit = CSSParserValue::HexColor; } /* Handle error case: "col or: #;" */ |
1639 /* FIXME: according to the specs a function can have a unary_operator in front . I know no case where this makes sense */ | 1639 /* FIXME: according to the specs a function can have a unary_operator in front . I know no case where this makes sense */ |
1640 | function maybe_space | 1640 | function maybe_space |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1857 ; | 1857 ; |
1858 | 1858 |
1859 rule_error_recovery: | 1859 rule_error_recovery: |
1860 /* empty */ | 1860 /* empty */ |
1861 | rule_error_recovery error | 1861 | rule_error_recovery error |
1862 | rule_error_recovery invalid_square_brackets_block | 1862 | rule_error_recovery invalid_square_brackets_block |
1863 | rule_error_recovery invalid_parentheses_block | 1863 | rule_error_recovery invalid_parentheses_block |
1864 ; | 1864 ; |
1865 | 1865 |
1866 %% | 1866 %% |
OLD | NEW |