Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support new style coffee errors

This fixes issue #398 by adding a regex to match the style of errors
that the latest version of coffee produces.
  • Loading branch information...
commit 7e960e677e75eef0972b53f8e2a168ffe784aa60 1 parent f1f3a9f
@marcins authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 sublimelinter/modules/coffeescript.py
View
4 sublimelinter/modules/coffeescript.py
@@ -25,6 +25,10 @@ def parse_errors(self, view, errors, lines, errorUnderlines,
match = re.match(r'.*?Error: (?P<error>.+) '
r'on line (?P<line>\d+)', line)
+ if not match:
+ match = re.match(r'[^:]+:(?P<line>\d+):\d+: '
+ r'error: (?P<error>.+)', line)
+
if match:
line, error = match.group('line'), match.group('error')
self.add_message(int(line), lines, error, errorMessages)
Please sign in to comment.
Something went wrong with that request. Please try again.