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

I found a scope that consistently breaks syntax highlight: #167

Closed MauricioAndrades closed 6 years ago

MauricioAndrades commented 6 years ago

Describe the issue here. image


Scope:                         source.js
                               meta.naomi
                               meta.class.js.fjsx15
                               meta.block.js.fjsx15
                               meta.function.js.fjsx15
                               meta.block.js.fjsx15
                               meta.declaration.variable.js.fjsx15
                               meta.function-call.js.fjsx15
                               meta.group.js.fjsx15
                               meta.object-literal.js.fjsx15
                               meta.block.js.fjsx15
Scope Extents (Line/Char):     (line: 1143 char: 13, line: 1773 char: 1)
Fg:                            #ffffff
Bg:                            #202429
Style:                         normal
Fg Name:                       foreground
Fg Scope:                      foreground
Bg Name:                       background
Bg Scope:                      background
Syntax File:                   Packages/Naomi/syntaxes/naomi.fjsx15.sublime-syntax
tmTheme File:                  Packages/User/monokai.js.tmTheme

------

code in this gist: https://gist.github.com/MauricioAndrades/f5fee37695981df5753c90ba3ad2a31e

borela commented 6 years ago

Thank you for the detailed report, I found other bugs too using the sample provided. Fixed in https://github.com/borela/naomi/releases/tag/v4.1.4

MauricioAndrades commented 6 years ago

thanks for that quick turn around! really appreciate that.