Skip to content

Instantly share code, notes, and snippets.

@MasWag
Last active August 29, 2015 14:16
Show Gist options
  • Save MasWag/4b74f9ac8f1014a73246 to your computer and use it in GitHub Desktop.
Save MasWag/4b74f9ac8f1014a73246 to your computer and use it in GitHub Desktop.
flycheck rule of vhdl using ghdl
(flycheck-define-checker vhdl-ghdl
"A VHDL syntax checker using ghdl."
:command ("ghdl" "-s" "--std=93" "--ieee=synopsys" "-fexplicit" source)
:error-patterns
((error line-start (file-name) ":" line ":" column
": " (message) line-end))
:modes vhdl-mode)
(flycheck-set-checker-executable 'vhdl-ghdl)
(add-hook 'vhdl-mode-hook
'(lambda ()
(setq flycheck-checker 'vhdl-ghdl)
(flycheck-mode 1)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment