Emmet: 支持 SugarSS

创建于 2016-03-09  ·  5评论  ·  资料来源: emmetio/emmet

这是 PostCSS 新的/官方的预处理器语法替代方案: https :

最有用的评论

@corysimmons你用过这个插件吗? https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS
我提取了这个包和文件https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS/blob/master/Syntaxes/SugarSS.tmLanguage
我将 414 行从source.css.postcss.sugarss更改source.sss

我提取了 Emmet 包。 然后修改了文件 editor.js 中的一些行

在 382 行 if 语句

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 (syntax === 'sss') { // I added this 3 lines started from else
            syntax = 'sass'; // this
        } // and this

现在将 m0 扩展为边距:0(不带分号)。

但没有这个改变它的扩展边距:0;

所有5条评论

Emmet 把分号放在最后...

你是使用 Stylus 语法还是 Emmet 正式开始支持这个?

@corysimmons你用过这个插件吗? https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS
我提取了这个包和文件https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS/blob/master/Syntaxes/SugarSS.tmLanguage
我将 414 行从source.css.postcss.sugarss更改source.sss

我提取了 Emmet 包。 然后修改了文件 editor.js 中的一些行

在 382 行 if 语句

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 (syntax === 'sss') { // I added this 3 lines started from else
            syntax = 'sass'; // this
        } // and this

现在将 m0 扩展为边距:0(不带分号)。

但没有这个改变它的扩展边距:0;

感谢您的解决方法

在 v2 中可用

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

planetoftheweb picture planetoftheweb  ·  3评论

DanielRuf picture DanielRuf  ·  5评论

sergeche picture sergeche  ·  25评论

MarvinXu picture MarvinXu  ·  10评论

nicothin picture nicothin  ·  18评论