-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match Sublime Text standard JSON formatting in keymap file
- Loading branch information
Showing
1 changed file
with
72 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,120 +1,120 @@ | ||
[ | ||
// Auto-pair EJS delimiters | ||
// <% %> | ||
{"keys": ["%"], "command": "insert_snippet", "args": {"contents": "%${0: }%>"}, "context": | ||
{ "keys": ["%"], "command": "insert_snippet", "args": {"contents": "%${0: }%>"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.percentsign - source.js", "match_all": true}, | ||
{"key": "setting.auto_match_enabled", "operand": true}, | ||
{"key": "selection_empty", "operand": true, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true}, | ||
{"key": "following_text", "operator": "not_regex_contains", "operand": "^[%=_#>-]", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.percentsign - source.js", "match_all": true }, | ||
{ "key": "setting.auto_match_enabled", "operand": true }, | ||
{ "key": "selection_empty", "operand": true, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true }, | ||
{ "key": "following_text", "operator": "not_regex_contains", "operand": "^[%=_#>-]", "match_all": true } | ||
] | ||
}, | ||
// <? ?> | ||
{"keys": ["?"], "command": "insert_snippet", "args": {"contents": "?${0: }?>"}, "context": | ||
{ "keys": ["?"], "command": "insert_snippet", "args": {"contents": "?${0: }?>"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.questionmark - source.js", "match_all": true}, | ||
{"key": "setting.auto_match_enabled", "operand": true}, | ||
{"key": "selection_empty", "operand": true, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true}, | ||
{"key": "following_text", "operator": "not_regex_contains", "operand": "^[?=_#>-]", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.questionmark - source.js", "match_all": true }, | ||
{ "key": "setting.auto_match_enabled", "operand": true }, | ||
{ "key": "selection_empty", "operand": true, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true }, | ||
{ "key": "following_text", "operator": "not_regex_contains", "operand": "^[?=_#>-]", "match_all": true } | ||
] | ||
}, | ||
// <$ $> | ||
{"keys": ["$"], "command": "insert_snippet", "args": {"contents": "\\$${0: }\\$>"}, "context": | ||
{ "keys": ["$"], "command": "insert_snippet", "args": {"contents": "\\$${0: }\\$>"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.dollarsign - source.js", "match_all": true}, | ||
{"key": "setting.auto_match_enabled", "operand": true}, | ||
{"key": "selection_empty", "operand": true, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true}, | ||
{"key": "following_text", "operator": "not_regex_contains", "operand": "^[$=_#>-]", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.dollarsign - source.js", "match_all": true }, | ||
{ "key": "setting.auto_match_enabled", "operand": true }, | ||
{ "key": "selection_empty", "operand": true, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true }, | ||
{ "key": "following_text", "operator": "not_regex_contains", "operand": "^[$=_#>-]", "match_all": true } | ||
] | ||
}, | ||
// <@ @> | ||
{"keys": ["@"], "command": "insert_snippet", "args": {"contents": "@${0: }@>"}, "context": | ||
{ "keys": ["@"], "command": "insert_snippet", "args": {"contents": "@${0: }@>"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.atsign - source.js", "match_all": true}, | ||
{"key": "setting.auto_match_enabled", "operand": true}, | ||
{"key": "selection_empty", "operand": true, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true}, | ||
{"key": "following_text", "operator": "not_regex_contains", "operand": "^[@=_#>-]", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.atsign - source.js", "match_all": true }, | ||
{ "key": "setting.auto_match_enabled", "operand": true }, | ||
{ "key": "selection_empty", "operand": true, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true }, | ||
{ "key": "following_text", "operator": "not_regex_contains", "operand": "^[@=_#>-]", "match_all": true } | ||
] | ||
}, | ||
// Auto-indent | ||
// <% %> | ||
{"keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.percentsign - source.js", "match_all": true}, | ||
{"key": "setting.auto_indent", "operand": true}, | ||
{"key": "selection_empty", "operand": true, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<%(?!%)[=_#-]?\\s*$", "match_all": true}, | ||
{"key": "following_text", "operator": "regex_contains", "operand": "^[_-]?%>", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.percentsign - source.js", "match_all": true }, | ||
{ "key": "setting.auto_indent", "operand": true }, | ||
{ "key": "selection_empty", "operand": true, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<%(?!%)[=_#-]?\\s*$", "match_all": true }, | ||
{ "key": "following_text", "operator": "regex_contains", "operand": "^[_-]?%>", "match_all": true } | ||
] | ||
}, | ||
{"keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.percentsign punctuation.definition.js.end.ejs", "match_all": true}, | ||
{"key": "setting.auto_indent", "operand": true}, | ||
{"key": "selection_empty", "operand": false, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<%(?!%)[=_#-]?\\s*$", "match_all": true}, | ||
{"key": "following_text", "operator": "regex_contains", "operand": "^\\s*[_-]?%>", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.percentsign punctuation.definition.js.end.ejs", "match_all": true }, | ||
{ "key": "setting.auto_indent", "operand": true }, | ||
{ "key": "selection_empty", "operand": false, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<%(?!%)[=_#-]?\\s*$", "match_all": true }, | ||
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\s*[_-]?%>", "match_all": true } | ||
] | ||
}, | ||
// <? ?> | ||
{"keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.questionmark - source.js", "match_all": true}, | ||
{"key": "setting.auto_indent", "operand": true}, | ||
{"key": "selection_empty", "operand": true, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<\\?(?!\\?)[=_#-]?\\s*$", "match_all": true}, | ||
{"key": "following_text", "operator": "regex_contains", "operand": "^[_-]?\\?>", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.questionmark - source.js", "match_all": true }, | ||
{ "key": "setting.auto_indent", "operand": true }, | ||
{ "key": "selection_empty", "operand": true, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<\\?(?!\\?)[=_#-]?\\s*$", "match_all": true }, | ||
{ "key": "following_text", "operator": "regex_contains", "operand": "^[_-]?\\?>", "match_all": true } | ||
] | ||
}, | ||
{"keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.questionmark punctuation.definition.js.end.ejs", "match_all": true}, | ||
{"key": "setting.auto_indent", "operand": true}, | ||
{"key": "selection_empty", "operand": false, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<\\?(?!\\?)[=_#-]?\\s*$", "match_all": true}, | ||
{"key": "following_text", "operator": "regex_contains", "operand": "^\\s*[_-]?\\?>", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.questionmark punctuation.definition.js.end.ejs", "match_all": true }, | ||
{ "key": "setting.auto_indent", "operand": true }, | ||
{ "key": "selection_empty", "operand": false, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<\\?(?!\\?)[=_#-]?\\s*$", "match_all": true }, | ||
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\s*[_-]?\\?>", "match_all": true } | ||
] | ||
}, | ||
// <$ $> | ||
{"keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.dollarsign - source.js", "match_all": true}, | ||
{"key": "setting.auto_indent", "operand": true}, | ||
{"key": "selection_empty", "operand": true, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<\\$(?!\\$)[=_#-]?\\s*$", "match_all": true}, | ||
{"key": "following_text", "operator": "regex_contains", "operand": "^[_-]?\\$>", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.dollarsign - source.js", "match_all": true }, | ||
{ "key": "setting.auto_indent", "operand": true }, | ||
{ "key": "selection_empty", "operand": true, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<\\$(?!\\$)[=_#-]?\\s*$", "match_all": true }, | ||
{ "key": "following_text", "operator": "regex_contains", "operand": "^[_-]?\\$>", "match_all": true } | ||
] | ||
}, | ||
{"keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.dollarsign punctuation.definition.js.end.ejs", "match_all": true}, | ||
{"key": "setting.auto_indent", "operand": true}, | ||
{"key": "selection_empty", "operand": false, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<\\$(?!\\$)[=_#-]?\\s*$", "match_all": true}, | ||
{"key": "following_text", "operator": "regex_contains", "operand": "^\\s*[_-]?\\$>", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.dollarsign punctuation.definition.js.end.ejs", "match_all": true }, | ||
{ "key": "setting.auto_indent", "operand": true }, | ||
{ "key": "selection_empty", "operand": false, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<\\$(?!\\$)[=_#-]?\\s*$", "match_all": true }, | ||
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\s*[_-]?\\$>", "match_all": true } | ||
] | ||
}, | ||
// <@ @> | ||
{"keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.atsign - source.js", "match_all": true}, | ||
{"key": "setting.auto_indent", "operand": true}, | ||
{"key": "selection_empty", "operand": true, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<@(?!@)[=_#-]?\\s*$", "match_all": true}, | ||
{"key": "following_text", "operator": "regex_contains", "operand": "^[_-]?@>", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.atsign - source.js", "match_all": true }, | ||
{ "key": "setting.auto_indent", "operand": true }, | ||
{ "key": "selection_empty", "operand": true, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<@(?!@)[=_#-]?\\s*$", "match_all": true }, | ||
{ "key": "following_text", "operator": "regex_contains", "operand": "^[_-]?@>", "match_all": true } | ||
] | ||
}, | ||
{"keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": | ||
[ | ||
{"key": "selector", "operand": "text.ejs.atsign punctuation.definition.js.end.ejs", "match_all": true}, | ||
{"key": "setting.auto_indent", "operand": true}, | ||
{"key": "selection_empty", "operand": false, "match_all": true}, | ||
{"key": "preceding_text", "operator": "regex_contains", "operand": "<@(?!@)[=_#-]?\\s*$", "match_all": true}, | ||
{"key": "following_text", "operator": "regex_contains", "operand": "^\\s*[_-]?@>", "match_all": true} | ||
{ "key": "selector", "operand": "text.ejs.atsign punctuation.definition.js.end.ejs", "match_all": true }, | ||
{ "key": "setting.auto_indent", "operand": true }, | ||
{ "key": "selection_empty", "operand": false, "match_all": true }, | ||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "<@(?!@)[=_#-]?\\s*$", "match_all": true }, | ||
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\s*[_-]?@>", "match_all": true } | ||
] | ||
} | ||
] |