Skip to content

Commit 1f7a287

Browse files
committed
Use selector to detect syntax
1 parent 11c317a commit 1f7a287

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

linter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class Htmlhint(NodeLinter):
1818

1919
"""Provides an interface to htmlhint."""
2020

21-
syntax = 'html'
21+
defaults = {
22+
'selector': 'text.html'
23+
}
2224
cmd = ('htmlhint', '--format', 'json', '--nocolor', 'stdin')
2325
version_args = '--version'
2426
version_re = r'(?P<version>\d+\.\d+\.\d+)'

0 commit comments

Comments
 (0)