Added diff and sh code types

Verified changes to ensure fixes #296.
This commit is contained in:
Dan Brown 2017-07-01 16:10:52 +01:00
parent de6d8a811c
commit d5d83da766
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -1,5 +1,6 @@
require('codemirror/mode/css/css'); require('codemirror/mode/css/css');
require('codemirror/mode/clike/clike'); require('codemirror/mode/clike/clike');
require('codemirror/mode/diff/diff');
require('codemirror/mode/go/go'); require('codemirror/mode/go/go');
require('codemirror/mode/htmlmixed/htmlmixed'); require('codemirror/mode/htmlmixed/htmlmixed');
require('codemirror/mode/javascript/javascript'); require('codemirror/mode/javascript/javascript');
@ -26,6 +27,7 @@ const modeMap = {
'c++': 'clike', 'c++': 'clike',
'c#': 'clike', 'c#': 'clike',
csharp: 'clike', csharp: 'clike',
diff: 'diff',
go: 'go', go: 'go',
html: 'htmlmixed', html: 'htmlmixed',
javascript: 'javascript', javascript: 'javascript',
@ -42,6 +44,7 @@ const modeMap = {
ruby: 'ruby', ruby: 'ruby',
rb: 'ruby', rb: 'ruby',
shell: 'shell', shell: 'shell',
sh: 'shell',
bash: 'shell', bash: 'shell',
toml: 'toml', toml: 'toml',
sql: 'sql', sql: 'sql',