1111"""This module exports the Htmlhint plugin class."""
1212
1313import re
14- from SublimeLinter .lint import Linter , util , persist
14+ from SublimeLinter .lint import Linter , persist
1515
1616
1717class Htmlhint (Linter ):
@@ -20,7 +20,7 @@ class Htmlhint(Linter):
2020
2121 syntax = 'html'
2222 cmd = 'htmlhint'
23- executable = None
23+ # executable = 'htmlhint'
2424 version_args = '--version'
2525 version_re = r'(?P<version>\d+\.\d+\.\d+)'
2626 version_requirement = '>= 0.9.0'
@@ -44,14 +44,13 @@ class Htmlhint(Linter):
4444 warn_re = re .compile (warn_regex )
4545
4646 def split_match (self , match ):
47- split = super ().split_match (match )
47+ match , line , col , error , warning , message , near = super ().split_match (match )
4848 if match :
49- message = match .group ('message' )
50-
5149 # check if message is a warning
5250 warn = self .warn_re .match (message )
5351 if warn :
54- split = (split [0 ], split [1 ], split [2 ], False , True , split [5 ], split [6 ])
52+ return match , line , col , False , True , message , near
53+
54+ persist .debug ('match -- msg:"{}", match:{}, line:{}, col:{}, near:{}, warn: {}' .format (message , match , line , col , near , warn ))
5555
56- persist .debug ('match -- msg:"{}", split:"{}", warn: {}' .format (message , split , warn ))
57- return split
56+ return match , line , col , error , warning , message , near
0 commit comments