Sublime Forum

Two snippets for two scope but 1 file

#1

hello,
I have snippets for coffescript and snippets for a test framework (Mocha).
A Mocha file is a coffescript file with a parent called 'test"
So I defined a scope corresponding to this kind of files and called this scope “source.nodejs_mocha”
And I restricted my Mocha snippets to this scope.
fine.
But in the mocha files the coffescript snippets no longer works, since they target the coffescript scope (source.coffee)

Is there a solution to have both coffee & mocha groups of snippets working on mocha files whereas only coffee snippets would work when on a “simple” coffee file ?

A bit tricky, but would be usefull.

0 Likes