Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit da40ebb

Browse files
author
Narciso Jaramillo
committed
Merge pull request #2075 from andyli/cmv3_haxe
Enabled Haxe mode (with syntax highlighting)
2 parents 8365b0a + d771280 commit da40ebb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/editor/EditorUtils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ define(function (require, exports, module) {
4949
require("thirdparty/CodeMirror2/mode/diff/diff");
5050
require("thirdparty/CodeMirror2/mode/markdown/markdown");
5151
require("thirdparty/CodeMirror2/mode/yaml/yaml");
52+
require("thirdparty/CodeMirror2/mode/haxe/haxe");
5253

5354
/**
5455
* @private
@@ -162,6 +163,9 @@ define(function (require, exports, module) {
162163
case "yaml":
163164
case "yml":
164165
return "yaml";
166+
167+
case "hx":
168+
return "haxe";
165169

166170
default:
167171
console.log("Called EditorUtils.js _getModeFromFileExtensions with an unhandled file extension: " + ext);

0 commit comments

Comments
 (0)