Use java mode when extension is java

This commit is contained in:
Kevin Sawicki
2012-06-07 15:26:46 -07:00
parent b3865d0520
commit 9172b23e8f

View File

@@ -174,6 +174,7 @@ class Buffer
when 'c', 'h', 'cpp' then 'c_cpp'
when 'html', 'htm' then 'html'
when 'css' then 'css'
when 'java' then 'java'
else 'text'
@mode = new (require("ace/mode/#{modeName}").Mode)