Skip to content

Commit

Permalink
Change regex to support Windows absolute path filenames
Browse files Browse the repository at this point in the history
Adds `(c:)?` to the linter regex to support both types absolute filename paths, windows and unix
  • Loading branch information
groteworld committed Jan 7, 2015
1 parent 3e6dbbc commit aa9c9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Luacheck(Linter):
inline_settings = 'limit'
inline_overrides = ('ignore', 'only', 'globals')
cmd = 'luacheck @ *'
regex = r'^(?P<filename>[^:]+):(?P<line>\d+):(?P<col>\d+): (?P<message>.*)$'
regex = r'^(c:)?(?P<filename>[^:]+):(?P<line>\d+):(?P<col>\d+): (?P<message>.*)$'

def build_args(self, settings):
"""Return args, transforming --ignore, --only, and --globals args into a format luacheck understands."""
Expand Down

0 comments on commit aa9c9b8

Please sign in to comment.