mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-01-26 07:01:47 +00:00
backing up sublime settings
This commit is contained in:
9
Packages/User/linters/lua.py
Normal file
9
Packages/User/linters/lua.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from lint import Linter
|
||||
|
||||
class Lua(Linter):
|
||||
language = 'lua'
|
||||
cmd = ('luac', '-p')
|
||||
regex = '^luac: [^:]+:(?P<line>\d+): (?P<error>.+?)(?P<near> near .+)?'
|
||||
|
||||
def run(self, cmd, code):
|
||||
return self.tmpfile(cmd, code, suffix='.lua')
|
||||
Reference in New Issue
Block a user