Permalink
Browse files

Merge pull request #52 from karlhorky/patch-1

Fix CSScomb when Sass tmLanguage installed
  • Loading branch information...
2 parents 75e0b71 + 14e3792 commit 9b6467d5237706a16d4ec48554c6c39a5f06f822 @tonyganch tonyganch committed Feb 3, 2015
Showing with 6 additions and 1 deletion.
  1. +6 −1 CSScomb.py
View
@@ -78,6 +78,8 @@ def get_syntax(self):
return 'css'
if self.is_scss():
return 'scss'
+ if self.is_sass():
+ return 'sass'
if self.is_less():
return 'less'
if self.is_unsaved_buffer_without_syntax():
@@ -107,7 +109,10 @@ def is_css(self):
return self.view.scope_name(0).startswith('source.css')
def is_scss(self):
- return self.view.scope_name(0).startswith('source.scss')
+ return self.view.scope_name(0).startswith('source.scss') or self.view.file_name().endswith('.scss')
+
+ def is_sass(self):
+ return self.view.scope_name(0).startswith('source.sass')
def is_less(self):
return self.view.scope_name(0).startswith('source.less')

0 comments on commit 9b6467d

Please sign in to comment.