Closed JeremyPlease closed 8 years ago
Fixes kungfusheep/SublimeLinter-contrib-stylelint#25 Fixes kungfusheep/SublimeLinter-contrib-stylelint#20
The output of styelint looks like this:
4:5 ✖ Expected indentation of 1 tab indentation
So, the regex now handles the whitespace at beginning of the line and between line number and error.
Props to @Arkkimaagi in #25 for the solution. I updated the regex to use \s instead of a space.
\s
cheers!
For highlighting warnings (yellow) as well as errors (red), use the following regex:
^\s*(?P<line>\d+)\:(?P<col>\d+)\s*(?:(?P<error>×)|(?P<warning>‼))\s*(?P<message>.+)
Fixes kungfusheep/SublimeLinter-contrib-stylelint#25 Fixes kungfusheep/SublimeLinter-contrib-stylelint#20
The output of styelint looks like this:
So, the regex now handles the whitespace at beginning of the line and between line number and error.
Props to @Arkkimaagi in #25 for the solution. I updated the regex to use
\s
instead of a space.