Add support for properties (INI)

This commit is contained in:
Connor O'Shea 2019-09-15 20:20:11 -04:00 committed by GitHub
parent 60d0f96cd7
commit 228aa4740b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ import 'codemirror/mode/mllike/mllike';
import 'codemirror/mode/nginx/nginx'; import 'codemirror/mode/nginx/nginx';
import 'codemirror/mode/php/php'; import 'codemirror/mode/php/php';
import 'codemirror/mode/powershell/powershell'; import 'codemirror/mode/powershell/powershell';
import 'codemirror/mode/properties/properties';
import 'codemirror/mode/python/python'; import 'codemirror/mode/python/python';
import 'codemirror/mode/ruby/ruby'; import 'codemirror/mode/ruby/ruby';
import 'codemirror/mode/rust/rust'; import 'codemirror/mode/rust/rust';
@ -42,6 +43,7 @@ const modeMap = {
haskell: 'haskell', haskell: 'haskell',
hs: 'haskell', hs: 'haskell',
html: 'htmlmixed', html: 'htmlmixed',
ini: 'text/x-ini',
javascript: 'javascript', javascript: 'javascript',
json: {name: 'javascript', json: true}, json: {name: 'javascript', json: true},
js: 'javascript', js: 'javascript',
@ -54,6 +56,7 @@ const modeMap = {
ml: 'mllike', ml: 'mllike',
nginx: 'nginx', nginx: 'nginx',
powershell: 'powershell', powershell: 'powershell',
properties: 'text/x-properties',
ocaml: 'mllike', ocaml: 'mllike',
php: 'php', php: 'php',
py: 'python', py: 'python',