yasnippet-snippets icon indicating copy to clipboard operation
yasnippet-snippets copied to clipboard

Some of the js-mode snippets depend on js2-mode

Open qqlearn123 opened this issue 6 years ago • 0 comments
trafficstars

I found that some snippets inside js-mode have dependency on functions of js2-mode, which causes errors reported if I do not have js2-mode installed.

For example, the 'param-comment' snippet is defined as:

# -*- mode: snippet -*-
# name: param-comment
# key: *@p
#condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT)
# --
* @param {${type}} ${comment}.

So, is it more appropriate to put those snippets which depend on js2-mode into js2-mode snippets?

Thanks and look forward to hearing from you.

qqlearn123 avatar Jul 20 '19 17:07 qqlearn123