Update CodeMirror to 5.14.2

Added 5 new language modes: mbox, PowerShell, SAS, Web IDL and Yacas.

Change-Id: I2c035d9cd813afb2d575e1b46be05586813fc869
This commit is contained in:
Michael Zhou 2016-04-07 03:28:40 -04:00
parent 65e550a18c
commit ef0833da2a
5 changed files with 25 additions and 3 deletions
gerrit-gwtui/src/main/java/net/codemirror/mode
gerrit-server/src/main/resources/com/google/gerrit/server/mime
lib/codemirror

@ -91,6 +91,7 @@ public class ModeInfo extends JavaScriptObject {
Modes.I.lua(),
Modes.I.markdown(),
Modes.I.mathematica(),
Modes.I.mbox(),
Modes.I.mirc(),
Modes.I.mllike(),
Modes.I.modelica(),
@ -106,6 +107,7 @@ public class ModeInfo extends JavaScriptObject {
Modes.I.perl(),
Modes.I.php(),
Modes.I.pig(),
Modes.I.powershell(),
Modes.I.properties(),
Modes.I.protobuf(),
Modes.I.puppet(),
@ -116,6 +118,7 @@ public class ModeInfo extends JavaScriptObject {
Modes.I.rst(),
Modes.I.ruby(),
Modes.I.rust(),
Modes.I.sas(),
Modes.I.scheme(),
Modes.I.shell(),
Modes.I.smalltalk(),
@ -145,8 +148,10 @@ public class ModeInfo extends JavaScriptObject {
Modes.I.verilog(),
Modes.I.vhdl(),
Modes.I.vue(),
Modes.I.webidl(),
Modes.I.xml(),
Modes.I.xquery(),
Modes.I.yacas(),
Modes.I.yaml_frontmatter(),
Modes.I.yaml(),
Modes.I.z80(),

@ -76,6 +76,7 @@ public interface Modes extends ClientBundle {
@Source("lua.js") @DoNotEmbed DataResource lua();
@Source("markdown.js") @DoNotEmbed DataResource markdown();
@Source("mathematica.js") @DoNotEmbed DataResource mathematica();
@Source("mbox.js") @DoNotEmbed DataResource mbox();
@Source("mirc.js") @DoNotEmbed DataResource mirc();
@Source("mllike.js") @DoNotEmbed DataResource mllike();
@Source("modelica.js") @DoNotEmbed DataResource modelica();
@ -91,6 +92,7 @@ public interface Modes extends ClientBundle {
@Source("perl.js") @DoNotEmbed DataResource perl();
@Source("php.js") @DoNotEmbed DataResource php();
@Source("pig.js") @DoNotEmbed DataResource pig();
@Source("powershell.js") @DoNotEmbed DataResource powershell();
@Source("properties.js") @DoNotEmbed DataResource properties();
@Source("protobuf.js") @DoNotEmbed DataResource protobuf();
@Source("puppet.js") @DoNotEmbed DataResource puppet();
@ -101,6 +103,7 @@ public interface Modes extends ClientBundle {
@Source("rst.js") @DoNotEmbed DataResource rst();
@Source("ruby.js") @DoNotEmbed DataResource ruby();
@Source("rust.js") @DoNotEmbed DataResource rust();
@Source("sas.js") @DoNotEmbed DataResource sas();
@Source("sass.js") @DoNotEmbed DataResource sass();
@Source("scheme.js") @DoNotEmbed DataResource scheme();
@Source("shell.js") @DoNotEmbed DataResource shell();
@ -133,8 +136,10 @@ public interface Modes extends ClientBundle {
@Source("verilog.js") @DoNotEmbed DataResource verilog();
@Source("vhdl.js") @DoNotEmbed DataResource vhdl();
@Source("vue.js") @DoNotEmbed DataResource vue();
@Source("webidl.js") @DoNotEmbed DataResource webidl();
@Source("xml.js") @DoNotEmbed DataResource xml();
@Source("xquery.js") @DoNotEmbed DataResource xquery();
@Source("yacas.js") @DoNotEmbed DataResource yacas();
@Source("yaml-frontmatter.js") @DoNotEmbed DataResource yaml_frontmatter();
@Source("yaml.js") @DoNotEmbed DataResource yaml();
@Source("z80.js") @DoNotEmbed DataResource z80();

@ -119,6 +119,7 @@ m = text/x-objectivec
macruby = text/x-ruby
map = application/json
markdown = text/x-markdown
mbox = application/mbox
md = text/x-markdown
mirc = text/mirc
mkd = text/x-markdown
@ -159,6 +160,9 @@ project.config = text/x-ini
properties = text/x-ini
proto = text/x-protobuf
protobuf = text/x-protobuf
ps1 = application/x-powershell
psd1 = application/x-powershell
psm1 = application/x-powershell
py = text/x-python
pyw = text/x-python
pyx = text/x-cython
@ -179,6 +183,7 @@ rss = application/xml
rst = text/x-rst
README.md = text/x-gfm
s = text/x-gas
sas = text/x-sas
sass = text/x-sass
scala = text/x-scala
scm = text/x-scheme
@ -223,6 +228,7 @@ vhd = text/x-vhdl
vhdl = text/x-vhdl
vm = text/velocity
vtl = text/velocity
webidl = text/x-webidl
wsdl = application/xml
xhtml = text/html
xml = application/xml
@ -233,6 +239,7 @@ xu = text/x-xu
xy = application/xquery
yaml = text/x-yaml
yml = text/x-yaml
ys = text/x-yacas
zsh = text/x-sh
z80 = text/x-z80
1 = text/troff

@ -1,14 +1,14 @@
include_defs('//lib/maven.defs')
include_defs('//lib/codemirror/cm.defs')
VERSION = '5.13.4'
VERSION = '5.14.2'
TOP = 'META-INF/resources/webjars/codemirror/%s' % VERSION
TOP_MINIFIED = 'META-INF/resources/webjars/codemirror-minified/%s' % VERSION
maven_jar(
name = 'codemirror-minified',
id = 'org.webjars.npm:codemirror-minified:' + VERSION,
sha1 = 'fb207d777aad82423d098c3660bd2ca72775bf6e',
sha1 = 'c69056d2a0e07432326e67ea8fe2abb91a065030',
attach_source = False,
license = 'codemirror-minified',
visibility = [],
@ -17,7 +17,7 @@ maven_jar(
maven_jar(
name = 'codemirror-original',
id = 'org.webjars.npm:codemirror:' + VERSION,
sha1 = '4130b0a7e998d304277a86062351cb9e2840cbfa',
sha1 = '1ed9697531be85c85edb70fcdf58f10045563f7b',
attach_source = False,
license = 'codemirror-original',
visibility = [],

@ -100,6 +100,7 @@ CM_MODES = [
'lua',
'markdown',
'mathematica',
'mbox',
'mirc',
'mllike',
'modelica',
@ -115,6 +116,7 @@ CM_MODES = [
'perl',
'php',
'pig',
'powershell',
'properties',
'protobuf',
'puppet',
@ -125,6 +127,7 @@ CM_MODES = [
'rst',
'ruby',
'rust',
'sas',
'sass',
'scheme',
'shell',
@ -157,8 +160,10 @@ CM_MODES = [
'verilog',
'vhdl',
'vue',
'webidl',
'xml',
'xquery',
'yacas',
'yaml-frontmatter',
'yaml',
'z80',