From ca018cf1fd201450333c9109e110d3e1e3238c9e Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Thu, 27 Oct 2011 10:12:27 +0200 Subject: [PATCH] Fixes #4 - Configuration setting `jsdoc_extend_double_slash` controls automatic extension of // comments --- Base File.sublime-settings | 3 +++ Default.sublime-keymap | 1 + 2 files changed, 4 insertions(+) create mode 100644 Base File.sublime-settings diff --git a/Base File.sublime-settings b/Base File.sublime-settings new file mode 100644 index 0000000..dfa201d --- /dev/null +++ b/Base File.sublime-settings @@ -0,0 +1,3 @@ +{ + "jsdocs_extend_double_slash": true +} diff --git a/Default.sublime-keymap b/Default.sublime-keymap index 41b0033..4513e0f 100644 --- a/Default.sublime-keymap +++ b/Default.sublime-keymap @@ -23,6 +23,7 @@ { "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n${TM_CURRENT_LINE/^\\s*(\\/\\/\\s*).*$/$1/}"}, "context": [ { "key": "setting.auto_indent", "operator": "equal", "operand": true, "match_all": true }, + { "key": "setting.jsdocs_extend_double_slash", "operator": "equal", "operand": true, "match_all": true}, { "key": "selector", "operator" : "equal", "operand" : "comment.line.double-slash", "match_all": true}, { "key": "preceding_text", "operator" : "regex_contains", "operand": "^\\s*\\/\\/", "match_all": true} ]