Skip to content

Commit

Permalink
Match Sublime Text standard JSON formatting in keymap file
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoltman committed Nov 28, 2016
1 parent fc5d8d5 commit b75e2e1
Showing 1 changed file with 72 additions and 72 deletions.
144 changes: 72 additions & 72 deletions Default.sublime-keymap
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 }
]
}
]

0 comments on commit b75e2e1

Please sign in to comment.