izhangzhihao / intellij-rainbow-brackets

🌈Rainbow Brackets for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio/Fleet
https://plugins.jetbrains.com/plugin/10080-rainbow-brackets
GNU General Public License v3.0
4.47k stars 214 forks source link

Modified single quotes's color unnecessarily(jQuery) #41

Closed wangziling closed 4 years ago

wangziling commented 6 years ago

Current Behavior

The last single quote's color had been changed by this plugin in every pairs single quotes. 开了插件后,每对单引号中的最后一单引号颜色被修改了。好像就jQuery选择器会这样。

Possible Solution

Not obligatory, but suggest a fix/reason for the bug, or ideas how to implement the addition or change

Code snippet for reproduce (for bugs)

image image image

image image image

Your Environment

izhangzhihao commented 6 years ago

It seems like $ and ' are pairs...

wangziling commented 6 years ago

好像是的...我还是打中文吧,英语太难了。。。

wangziling commented 6 years ago

但是好像要比$的颜色要深那么点。

izhangzhihao commented 6 years ago

是的...

izhangzhihao commented 6 years ago

你用的 PHP 是吧,我不熟悉 PHP,你能告诉我$('')是什么语法吗?

wangziling commented 6 years ago

jQuery的语法。JQuery是 javascript的一个库

wangziling commented 6 years ago

这个是在 js 文件里面。

izhangzhihao commented 6 years ago

提供一下那几段代码吧,蟹蟹

wangziling commented 6 years ago
var  
    $searchQuestionsBtn = $('[data-name="searchQuestionsBtn"]'),
    oSubjects = $('#subjects'),
    $searchList = $('.search-list');
wangziling commented 6 years ago

image 现在是在webstorm里面,没有引用JQuery的时候,也就是$是未定义的。这个也是在js文件下。

wangziling commented 6 years ago

image

还真的好像是 与 $ 成对了。

izhangzhihao commented 6 years ago

我的环境没有复现:

screen shot 2018-03-22 at 3 10 18 pm
wangziling commented 6 years ago

emmm....其他人的界面也是这样,webstorm image

izhangzhihao commented 6 years ago

emmmmm.... 除了这个插件之外你还装了什么第三方插件?

wangziling commented 6 years ago

他应该没有装什么的多余的。 我就多装了个 material ui

wangziling commented 6 years ago

我们都是win,看你的截图,感觉你是mac

izhangzhihao commented 6 years ago

我的环境是: IntelliJ IDEA 2018.1 (Ultimate Edition) Build #IU-181.4203.400, built on March 19, 2018 JRE: 1.8.0_152-release-1136-b20 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.13.3

wangziling commented 6 years ago

PhpStorm 2017.3.6 Build #PS-173.4674.46, built on March 16, 2018 JRE: 1.8.0_152-release-1024-b15 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0

YiiGuxing commented 6 years ago

使用JQuery,JQuery在IDE中有对应的JQuery Language。

我靠!这是被隐藏属性爆击了啊!!

$("#e") 这代码包含了以下挂号对:

 {   CSS_LBRACE
 }   CSS_RBRACE
 (   JS:LPAR
 )   JS:RPAR

也就是说包含了隐藏属性:{},插件无法识别这些隐藏属性,所以着色出问题了。。。

izhangzhihao commented 6 years ago

这个环境复现成功: IntelliJ IDEA 2017.2.7 Build #IU-172.4574.19, built on March 2, 2018 JRE: 1.8.0_144-b01 x86_64 JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation Mac OS X 10.13.3

wangziling commented 6 years ago

:smile: 好像有点意思-.-

izhangzhihao commented 6 years ago

一脸懵逼/(ㄒoㄒ)/~~

YiiGuxing commented 6 years ago

先不管吧,不是什么大问题。。。

wangziling commented 6 years ago

😄

kamronbatman commented 6 years ago

Same issue: Webstorm: 2018.2 Rainbow Bracket: 5.9.1 Mac OSX: 10.13.6

I hope there is a fix!

izhangzhihao commented 4 years ago

Close for nobody still using jQuery, it's 2020 now...

liux-pro commented 4 years ago

Even 2020,I‘m the one who still use “colorful” jQuery. o(╥﹏╥)o image

izhangzhihao commented 4 years ago

Sad story.

izhangzhihao commented 3 years ago

The fix:

image

Open "Do not rainbowify brackets without content"