wxapp-intellij icon indicating copy to clipboard operation
wxapp-intellij copied to clipboard

[Feature Request] wxs 语法高亮

Open Amorites opened this issue 5 years ago • 4 comments

什么是 wxs

WXS 代码可以编写在 wxml 文件中的 标签内,或以 .wxs 为后缀名的文件内。

简单来说就是砍掉部分语法的 js。

现在的表现

没有语法高亮

image image

期待的表现

第一阶段

按照 js 处理语法高亮

最终阶段

对非 wxs 支持的语法不提示/报错

Desktop

  • OS: [macOS]
  • IntelliJ Platform Version [2019.3]
  • Plugin Version [0.2.10]:

Amorites avatar Dec 12 '19 10:12 Amorites

zxj5470 avatar Dec 13 '19 17:12 zxj5470

@zxj5470 更新了 issue 描述,还有什么没有理解的地方请随时指出

Amorites avatar Dec 14 '19 02:12 Amorites

emmmm是我捞了

zxj5470 avatar Dec 14 '19 04:12 zxj5470

史上最缺德语法出现了

/*
方法三:结尾注释。即从 /* 开始往后的所有 WXS 代码均被注释

var a = 1;
var b = 2;
var c = "fake";

zxj5470 avatar Dec 19 '19 10:12 zxj5470