We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5729c8e commit 28a4452Copy full SHA for 28a4452
1 file changed
linter.py
@@ -10,7 +10,7 @@
10
11
"""This module exports the Ruby plugin class."""
12
13
-from SublimeLinter.lint import Linter, util
+from SublimeLinter.lint import Linter
14
15
16
class Ruby(Linter):
@@ -20,9 +20,8 @@ class Ruby(Linter):
20
syntax = 'ruby'
21
cmd = 'ruby -wc'
22
regex = (
23
- r'^.+?:(?P<line>\d+):.+?, (?P<message>[^\r\n]+)\r?\n'
+ r'^.+?:(?P<line>\d+): (?:(?P<error>.*?error)|(?P<warning>warning))[,:] (?P<message>[^\r\n]+)\r?\n'
24
r'(?:^[^\r\n]+\r?\n^(?P<col>.*?)\^)?'
25
)
26
multiline = True
27
- error_stream = util.STREAM_BOTH
28
comment_re = r'\s*#'
0 commit comments