Match error message
@@ -15,12 +15,14 @@ contexts:
- match: '^\s+(?=[0-9: ]+error)'
push:
- ensure-error-meta-scope
+ - expect-linter-message
- expect-linter-type
- expect-linter-severity
- expect-line-maybe-column
- match: '^\s+(?=[0-9: ]+warning)'
push:
- ensure-warning-meta-scope
+ - expect-linter-message
- expect-linter-type
- expect-linter-severity
- expect-line-maybe-column
@@ -54,6 +56,12 @@ contexts:
3: storage.type.error-code.sublime_linter
pop: true
+ expect-linter-message:
+ - include: pop-at-end
+ - match: .*$
+ scope: meta.linter.message
+ pop: true
+
expect-line-maybe-column:
- include: pop-at-end
- match: (\d+)(?:(:)(\d+))?
