修改vim-zencoding对sass的支持

左手 posted @ 2013年7月12日 18:50 in Vim with tags sass zencoding zencoding对sass的支持 zencoding sass缺少空格 , 1973 阅读

目前使用的zencoding(git仓库版本)已经增加了对sass的支持,但支持不够完美,例如输入 pos:a ,展开以后是 position:absolute。这样的代码是无法编译通过的,sass中要求:(冒号)后面必须有空格,也就是position: absolute这样的结果。只需要很简单的修改就可以。

具体方法如下:
修改 autoload/zencoding/lang/sass.vim 在 let text = substitute(text, '\s*;\ze\(\${[^}]\+}\)\?\(\n\|$\)', '', 'g') Lline:60 行后面添加一行 let text = substitute(text, ':', ': ', '') 保存再次打开即可。

Avatar_small
PSEB 3rd Class Book 说:
2023年9月12日 15:53

Here we are Providing the Facility to Download Latest Edition PSEB Class Textbook 2024,Students You can Download for Hindi,English and Urdu Medium Schools.Punjab Board has Developed the new Textbooks PSEB 3rd Class Book 2024 at the Elementary Standard in Prepare by Senior experts.PSEB once Publishes the Punjab Board Standard Textbooks 2024 Other Study materials on the official Punjab 3rd Class Textbook 2024 Should be Followed as the Prime Resource Throughout the year to clear All doubts and Strengthen your knowledge,PSEB Provides easy Explanation for Various concepts in Curriculum. It Elaborates each Concept with the help of a Number of Problems and examples.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter