zxj5470 / wxapp-intellij

WeChat App plugin is Compatible with IntelliJ IDEA Ultimate, PhpStorm, PyCharm Professional, Rider, RubyMine, WebStorm, AppCode, CLion, GoLand
GNU General Public License v3.0
89 stars 10 forks source link

[Feature Request] wxs 语法高亮 #29

Open Amorites opened 4 years ago

Amorites commented 4 years ago

什么是 wxs

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

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

现在的表现

没有语法高亮

image image

期待的表现

第一阶段

按照 js 处理语法高亮

最终阶段

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

Desktop

zxj5470 commented 4 years ago

Amorites commented 4 years ago

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

zxj5470 commented 4 years ago

emmmm是我捞了

zxj5470 commented 4 years ago

史上最缺德语法出现了

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

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