function pyGetSyntax() {
	var view = activeView();
	var pt = view.sel()[0].begin();
	var scope = 'scope_name' in view ? view.scope_name(pt) : view.syntax_name(pt);

	if (~scope.indexOf('xsl')) {
		return 'xsl';
	}

	if (!/\bstring\b/.test(scope) && /\bsource\.jsx?\b/.test(scope)) {
		return 'jsx';
	}

	var syntax = 'html';

	if (!/\bstring\b/.test(scope) && /\bsource\.([\w\-]+)/.test(scope) && resources.hasSyntax(RegExp.$1)) {
		syntax = RegExp.$1;
	} else if (/\b(less|scss|sass|css|stylus|postcss)\b/.test(scope)) {
		// detect CSS-like syntaxes independently,
		// since it may cause collisions with some highlighters
		syntax = RegExp.$1;

		if (syntax === 'postcss') {
			syntax = 'css';
		}
	} else if (/\b(html|xml|haml|slim|jade|pug)\b/.test(scope)) {
		syntax = RegExp.$1;
	}

	return actionUtils.detectSyntax(editorProxy, syntax);
}
Returns current syntax name
@return {String}