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
557 stars 20 forks source link

Space after `function` breaks highlighting #262

Open boycce opened 3 years ago

boycce commented 3 years ago

Space after function seems to break highlighting for a method inside an object literal.

image

Here are the scope names that are being returned for the method names:

# First (good)
source.js meta.object-literal.js.fjsx15 meta.block.js.fjsx15 meta.declaration.function.js.fjsx15 meta.object-literal.key.js.fjsx15 entity.name.function.js.fjsx15

# Second (bad)
source.js meta.object-literal.js.fjsx15 meta.block.js.fjsx15 meta.object-literal.key.js.fjsx15 string.unquoted.js.fjsx15