Skip to content

Commit b69b53c

Browse files
committed
Allow words to start with ".", for example class selectors.
1 parent 508c58d commit b69b53c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CSSLint(Linter):
2828
(?:line\ (?P<line>\d+),\ col\ (?P<col>\d+),\ )?
2929
(?:(?P<error>error)|(?P<warning>warning))\ -\ (?P<message>.*)$
3030
'''
31-
word_re = r'^(#?[-\w]+)'
31+
word_re = r'^([#\.]?[-\w]+)'
3232
tempfile_suffix = 'css'
3333
selectors = {
3434
'html': 'source.css.embedded.html'

0 commit comments

Comments
 (0)