Skip to content

Commit

Permalink
added slang linter support for systemverilog
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen committed Sep 29, 2024
1 parent 968a35d commit 65c4ec7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lua/lint/linters/slang.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
local pattern = "^([^:]+):(%d+):(%d+): (%w+): (.+)"

local groups = { "file", "lnum", "col", "severity", "message" }

local severities = {
["error"] = vim.diagnostic.severity.ERROR,
["warning"] = vim.diagnostic.severity.WARN,
}

return {
cmd = "slang",
stdin = false,
stream = "stderr",
args = {
"-Weverything",
},
ignore_exitcode = false,
parser = require("lint.parser").from_pattern(pattern, groups, severities, { ["source"] = "slang" }),
}

0 comments on commit 65c4ec7

Please sign in to comment.