Whitespace after CSS filters is significant
Fixes issue 30
This commit is contained in:
parent
acdcc28bf9
commit
315baa2147
@ -89,6 +89,7 @@ class LessLexer:
|
||||
'css_number',
|
||||
'css_color',
|
||||
'css_media_type',
|
||||
'css_filter',
|
||||
'less_variable',
|
||||
't_and',
|
||||
't_not',
|
||||
|
@ -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
|
||||
"""
|
||||
|
4
test/css/issues/issue30.css
Normal file
4
test/css/issues/issue30.css
Normal file
@ -0,0 +1,4 @@
|
||||
tr:nth-child(odd) td,
|
||||
tr:nth-child(odd) th {
|
||||
color: red;
|
||||
}
|
4
test/less/issues/issue30.less
Normal file
4
test/less/issues/issue30.less
Normal file
@ -0,0 +1,4 @@
|
||||
tr:nth-child(odd) td,
|
||||
tr:nth-child(odd) th {
|
||||
color: red;
|
||||
}
|
Loading…
Reference in New Issue
Block a user