12345678910111213141516171819202122232425262728293031323334353637383940 |
- #
- # linter.py
- # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
- #
- # Written by VHDL-Tool
- # Copyright (c) 2016 VHDL-Tool
- #
- # License: MIT
- #
- """This module exports the VhdlTool plugin class."""
- from SublimeLinter.lint import Linter, util
- class VhdlTool(Linter):
- """Provides an interface to vhdl-tool."""
- syntax = 'vhdl'
- cmd = 'vhdl-tool client lint --compact --stdin -f @'
- executable = None
- version_args = '--version'
- version_re = r'(?P<version>\d+\.\d+\.\d+)'
- version_requirement = '>= 0.0'
- regex = (
- r'^.+?:(?P<line>\d+):(?P<col>\d+):'
- r'(?:(?P<error>[e])|(?P<warning>[w])):'
- r'(?P<message>.+)'
- )
- multiline = False
- line_col_base = (1, 1)
- error_stream = util.STREAM_BOTH
- selectors = {}
- word_re = None
- defaults = {}
- inline_settings = None
- inline_overrides = None
- comment_re = None
|