Skip to content

Commit 1b0c130

Browse files
committed
Added erb support.
1 parent 661f4ed commit 1b0c130

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

linter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ class Ruby(RubyLinter):
1717

1818
"""Provides an interface to ruby -wc."""
1919

20-
syntax = ('ruby', 'ruby on rails', 'rspec')
20+
syntax = ('ruby', 'ruby on rails', 'rspec', 'html (rails)')
2121
cmd = 'ruby -wc'
2222
regex = (
2323
r'^.+?:(?P<line>\d+): (?:(?P<error>.*?error)|(?P<warning>warning))[,:] (?P<message>[^\r\n]+)\r?\n'
2424
r'(?:^[^\r\n]+\r?\n^(?P<col>.*?)\^)?'
2525
)
2626
multiline = True
27+
selectors = {'html (rails)': 'source.ruby.rails.embedded.html'}
2728
comment_re = r'\s*#'

0 commit comments

Comments
 (0)