borela / naomi

Sublime Text enhanced syntax highlighting for JavaScript ES6/ES7/ES2015/ES2016/ES2017+, Babel, FlowType, React JSX, Styled Components, HTML5, SCSS3, PHP 7, phpDoc, PHPUnit, MQL4. Basic: Git config files.
Other
558 stars 18 forks source link

dot regex char class scoped as a string #180

Closed YuriGor closed 5 years ago

YuriGor commented 5 years ago

Look at qq.+ dot colored as a string, not as regex selector.

var reg = /q[qwerty]\.qq.+s{1,2}\d\s/g;
borela commented 5 years ago

I could do like the builtin syntax and color it as constant.other.character-class, would that be fine? Do you know a better scope for this case?

YuriGor commented 5 years ago

i am total noob in the sphere of syntax highlighting and such things, but may be you need to same scope as used for other selectors like \d \s \W and soon In native JS/monokai this entries colored with purple color image

borela commented 5 years ago

I used the same scope as the one being used by the builtin syntax; https://github.com/borela/naomi/releases/tag/v4.2.7

YuriGor commented 5 years ago

Tested, works flawlessly.