Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Updated Regex #2

Merged
merged 2 commits into from
Jul 10, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/linter-lua.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ class LinterLua extends Linter

# A regex pattern used to extract information from the executable's output.
regex:
'.+?:.+?:' +
'^.+?:.+?:' +
'(?<line>\\d+):\\s+' +
'(?<message>.*)'
'(?<message>.+?' +
'(?:near (?<near>\'.+\')|$))'

errorStream: 'stderr'

regexFlags: 's'

constructor: (editor) ->
super(editor)

Expand Down