mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-02-06 12:32:21 +00:00
backing up sublime settings
This commit is contained in:
18
Packages/User/linters/todo.py
Normal file
18
Packages/User/linters/todo.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from lint import Linter
|
||||
|
||||
class TODO(Linter):
|
||||
scope = 'string'
|
||||
selector = 'comment'
|
||||
outline = False
|
||||
|
||||
@classmethod
|
||||
def can_lint(cls, language):
|
||||
return True
|
||||
|
||||
def lint(self):
|
||||
lines = self.code.split('\n')
|
||||
for i in range(len(lines)):
|
||||
if 'TODO' in lines[i]:
|
||||
todo = lines[i].index('TODO')
|
||||
self.highlight.range(i, todo, 4)
|
||||
self.error(i, 'TODO')
|
||||
Reference in New Issue
Block a user