Skip to content

Commit

Permalink
ghdl: trim whitespace (#720)
Browse files Browse the repository at this point in the history
Before:

    ghdl:  no declaration for "unsigned"

After:

    ghdl: no declaration for "unsigned"

Also, use (%l+) instead of ([^:]+) as severity seems to be always lowercase
error or warning.
  • Loading branch information
fredrikfoss authored Jan 6, 2025
1 parent 139cd3c commit dfa45de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lint/linters/ghdl.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local pattern = "([^:]+):(%d+):(%d+):([^:]+):(.+)"
local pattern = "([^:]+):(%d+):(%d+):(%l+):%s*(.+)"
local groups = { "file", "lnum", "col", "severity", "message" }
local severity_map = {
["error"] = vim.diagnostic.severity.ERROR,
Expand Down

0 comments on commit dfa45de

Please sign in to comment.