Skip to content

Commit a2b9a9c

Browse files
Gary-Ashkaste
authored andcommitted
Use selector instead of syntax
1 parent 0fa04d9 commit a2b9a9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

linter.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
class Ruby(RubyLinter):
1919
"""Provides an interface to ruby -wc."""
2020

21-
syntax = ('ruby', 'ruby on rails', 'rspec')
21+
defaults = {
22+
'selector': 'source.ruby'
23+
}
24+
2225
cmd = 'ruby -wc'
2326
regex = (
2427
r'^(?P<file>.+?):(?P<line>\d+): (?:(?P<error>.*?error)|(?P<warning>warning))[,:] (?P<message>[^\r\n]+)\r?\n'

0 commit comments

Comments
 (0)