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

babel-sublime snippets don't work with Naomi syntax setting #171

Open seanders opened 6 years ago

seanders commented 6 years ago

I just installed Naomi, and it's causing babel-sublime-snippets not to be in scope.

It looks like babel-sublime-snippets are excluded from any meta scope. Here's the line in question: https://github.com/babel/babel-sublime-snippets/blob/master/react_component_class.sublime-snippet#L15

If you remove the meta part, the snippets seem to work great.

My JS files have this scope:

image

Should I just consider this an issue with the babel-sublime-snippets? I don't know about about scopes in Sublime to make that judgement call.

Thanks!

borela commented 6 years ago

It is indeed a compatibility issue, I'll remove the meta.naomi scope tomorrow.

borela commented 6 years ago

I removed the meta scope https://github.com/borela/naomi/releases/tag/v4.2.3 and the snippets are working now :D