mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-01-26 07:01:47 +00:00
11 lines
279 B
Python
11 lines
279 B
Python
from lint import Linter
|
|
import os
|
|
|
|
class Nasm(Linter):
|
|
language = 'x86 assembly'
|
|
cmd = ('nasm', '-X', 'gnu', '-I.', '-o', os.devnull)
|
|
regex = r'^[^:]+:(?P<line>\d+): (?P<error>.*)$'
|
|
|
|
def run(self, cmd, code):
|
|
return self.tmpfile(cmd, code, suffix='.asm')
|