Codemirror: Add vhdl mode

Verilog mode was always supported by Codemirror, but support for VHDL
was only added in recent Codemirror version, so that we can only
include it now.

Bug: Issue 3447
Change-Id: I91028acf3f41f51981f710db00bee9a8c9398aee
This commit is contained in:
David Ostrovsky 2015-10-15 08:36:20 +02:00
parent 5bbfb22d36
commit 92ca421222
4 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,7 @@ public class ModeInfo extends JavaScriptObject {
Modes.I.stex(),
Modes.I.velocity(),
Modes.I.verilog(),
Modes.I.vhdl(),
Modes.I.xml(),
Modes.I.yaml(),
});

View File

@ -61,6 +61,7 @@ public interface Modes extends ClientBundle {
@Source("tcl.js") @DoNotEmbed DataResource tcl();
@Source("velocity.js") @DoNotEmbed DataResource velocity();
@Source("verilog.js") @DoNotEmbed DataResource verilog();
@Source("vhdl.js") @DoNotEmbed DataResource vhdl();
@Source("xml.js") @DoNotEmbed DataResource xml();
@Source("yaml.js") @DoNotEmbed DataResource yaml();

View File

@ -48,5 +48,6 @@ stex = text/x-stex
v = text/x-verilog
vert = x-shader/x-vertex
vh = text/x-verilog
vhdl = text/x-vhdl
vm = text/velocity
yaml = text/x-yaml

View File

@ -81,6 +81,7 @@ CM_MODES = [
'tcl',
'velocity',
'verilog',
'vhdl',
'xml',
'yaml',
]