Whitespace after CSS filters is significant

Fixes issue 30
This commit is contained in:
Sascha Peilicke 2014-02-02 18:48:37 +01:00
parent acdcc28bf9
commit 315baa2147
4 changed files with 11 additions and 0 deletions

View File

@ -89,6 +89,7 @@ class LessLexer:
'css_number',
'css_color',
'css_media_type',
'css_filter',
'less_variable',
't_and',
't_not',

View File

@ -634,12 +634,14 @@ class LessParser(object):
def p_filter(self, p):
""" filter : css_filter
| css_filter t_ws
| t_colon word
| t_colon vendor_property
| t_colon vendor_property t_ws
| t_colon css_property
| t_colon css_property t_ws
| t_colon css_filter
| t_colon css_filter t_ws
| t_colon t_colon word
| t_colon t_colon vendor_property
"""

View File

@ -0,0 +1,4 @@
tr:nth-child(odd) td,
tr:nth-child(odd) th {
color: red;
}

View File

@ -0,0 +1,4 @@
tr:nth-child(odd) td,
tr:nth-child(odd) th {
color: red;
}