mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Snippets matching the cursor's word prefix are inserted on 'tab' events
This commit is contained in:
@@ -23,8 +23,7 @@ class TokenizedBuffer
|
||||
@aceAdaptor = new AceAdaptor(this)
|
||||
|
||||
requireAceMode: ->
|
||||
extension = if @buffer.getPath() then @buffer.getPath().split('/').pop().split('.').pop() else null
|
||||
modeName = switch extension
|
||||
modeName = switch @buffer.getExtension()
|
||||
when 'js' then 'javascript'
|
||||
when 'coffee' then 'coffee'
|
||||
when 'rb', 'ru' then 'ruby'
|
||||
|
||||
Reference in New Issue
Block a user