def is_css(view): filename = view.file_name() if not filename: return False scopename = view.scope_name(view.sel()[0].b) if scopename.startswith('source.css') or filename.endswith('.css') \ or contains('meta.selector.css', scopename) or contains('source.css.embedded.html', scopename): return True if scopename.startswith('source.scss') or filename.endswith('.scss'): return True return False
def is_php(view): filename = view.file_name() if not filename: return False scopename = view.scope_name(0) if contains('source.php', scopename) or filename.endswith('.php'): return True return False
def is_css(view): filename = view.file_name() or "" scopename = view.scope_name(view.sel()[0].b) if (scopename.startswith("source.css") or filename.endswith(".css") or contains("meta.selector.css", scopename)): return True if scopename.startswith("source.scss") or filename.endswith(".scss"): return True if scopename.startswith("source.less") or filename.endswith(".less"): return True return False
def is_css(view): filename = view.file_name() if not filename: return False scopename = view.scope_name(view.sel()[0].b) if scopename.startswith('source.css') or filename.endswith('.css') or contains('meta.selector.css', scopename): return True if scopename.startswith('source.scss') or filename.endswith('.scss'): return True if scopename.startswith('source.less') or filename.endswith('.less'): return True return False
def is_source_js(view): scopename = view.scope_name(view.sel()[0].b) if scopename.startswith('source.js') or contains('source.js.embedded.html', scopename) \ or contains('source.css.embedded.js', scopename): return True return False
def is_source_js(view): scopename = view.scope_name(view.sel()[0].b) if scopename.startswith('source.js') or contains('source.js.embedded.html', scopename): return True return False
def is_source_js(view): scopename = view.scope_name(view.sel()[0].b) if scopename.startswith("source.js") or contains( "source.js.embedded.html", scopename): return True return False