Skip to content

Commit

Permalink
Fix absolute path recognition on windows in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekara VanHoc authored and mfussenegger committed Nov 22, 2024
1 parent 8e9562d commit 6b46370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lint/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function M.from_pattern(pattern, groups, severity_map, defaults, opts)
end
if captures.file then
local path
if vim.startswith(captures.file, '/') then
if (string.match(captures.file, '^%w:') or vim.startswith(captures.file, '/')) then
path = captures.file
else
path = vim.fn.simplify(linter_cwd .. '/' .. captures.file)
Expand Down

0 comments on commit 6b46370

Please sign in to comment.