mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-01-26 07:01:47 +00:00
19 lines
445 B
Python
19 lines
445 B
Python
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')
|