Adding Clojure and Lua as choosable languages.

This commit is contained in:
Nick Winter 2014-05-11 22:51:44 -07:00
parent 74ef9bc987
commit 0b5854765a
3 changed files with 5 additions and 1 deletions

View file

@ -60,7 +60,7 @@ UserSchema = c.object {},
colorConfig: c.object {additionalProperties: c.colorConfig()}
aceConfig: c.object {},
language: {type: 'string', 'default': 'javascript', 'enum': ['javascript', 'coffeescript']}
language: {type: 'string', 'default': 'javascript', 'enum': ['javascript', 'coffeescript', 'clojure', 'lua']}
keyBindings: {type: 'string', 'default': 'default', 'enum': ['default', 'vim', 'emacs']}
invisibles: {type: 'boolean', 'default': false}
indentGuides: {type: 'boolean', 'default': false}

View file

@ -10,6 +10,8 @@ block modal-body-content
select#tome-language(name="language")
option(value="javascript" selected=(language === "javascript")) JavaScript
option(value="coffeescript" selected=(language === "coffeescript")) CoffeeScript
option(value="clojure" selected=(language === "clojure")) Clojure (Experimental)
option(value="lua" selected=(language === "lua")) Lua (Soon)
span.help-block(data-i18n="play_level.editor_config_language_description") Define the programming language you want to code in.
.form-group.select-group
label.control-label(for="tome-key-bindings" data-i18n="play_level.editor_config_keybindings_label") Key Bindings

View file

@ -18,6 +18,8 @@ module.exports = class SpellView extends View
editModes:
'javascript': 'ace/mode/javascript'
'coffeescript': 'ace/mode/coffee'
'clojure': 'ace/mode/clojure'
'lua': 'ace/mode/lua'
keyBindings:
'default': null