CM3: Add reStructuredText mode

Rst mode depends on stex mode and makes use of overlay.

Bug: Issue 2779
Change-Id: Idf745f50459b3d058d9a84496e43745c64ddfe5d
This commit is contained in:
David Ostrovsky
2014-07-17 23:41:39 +02:00
committed by David Pursehouse
parent 4a11e44a85
commit 095d7f86a1
5 changed files with 15 additions and 0 deletions

View File

@@ -66,11 +66,13 @@ public class ModeInjector {
Modes.I.properties(),
Modes.I.python(),
Modes.I.r(),
Modes.I.rst(),
Modes.I.ruby(),
Modes.I.scheme(),
Modes.I.shell(),
Modes.I.smalltalk(),
Modes.I.sql(),
Modes.I.stex(),
Modes.I.velocity(),
Modes.I.verilog(),
Modes.I.xml(),

View File

@@ -49,11 +49,13 @@ public interface Modes extends ClientBundle {
@Source("properties/properties.js") @DoNotEmbed DataResource properties();
@Source("python/python.js") @DoNotEmbed DataResource python();
@Source("r/r.js") @DoNotEmbed DataResource r();
@Source("rst/rst.js") @DoNotEmbed DataResource rst();
@Source("ruby/ruby.js") @DoNotEmbed DataResource ruby();
@Source("scheme/scheme.js") @DoNotEmbed DataResource scheme();
@Source("shell/shell.js") @DoNotEmbed DataResource shell();
@Source("smalltalk/smalltalk.js") @DoNotEmbed DataResource smalltalk();
@Source("sql/sql.js") @DoNotEmbed DataResource sql();
@Source("stex/stex.js") @DoNotEmbed DataResource stex();
@Source("tcl/tcl.js") @DoNotEmbed DataResource tcl();
@Source("velocity/velocity.js") @DoNotEmbed DataResource velocity();
@Source("verilog/verilog.js") @DoNotEmbed DataResource verilog();

View File

@@ -94,6 +94,9 @@ text/x-python
r:
text/r-src
rst:
text/x-rst
ruby:
text/x-ruby
@@ -116,6 +119,9 @@ text/x-plsql
tcl:
text/x-tcl
stex:
text/x-stex
velocity:
text/velocity

View File

@@ -29,9 +29,11 @@ project.config = text/x-ini
properties = text/x-ini
py = text/x-python
r = text/r-src
rst = text/x-rst
rb = text/x-ruby
scala = text/x-scala
st = text/x-stsrc
stex = text/x-stex
v = text/x-verilog
vh = text/x-verilog
vm = text/velocity

View File

@@ -20,6 +20,7 @@ CM3_JS = [
'addon/search/search.js',
'addon/selection/mark-selection.js',
'addon/edit/trailingspace.js',
'addon/mode/overlay.js',
]
CM3_MODES = [
@@ -47,11 +48,13 @@ CM3_MODES = [
'properties/properties.js',
'python/python.js',
'r/r.js',
'rst/rst.js',
'ruby/ruby.js',
'scheme/scheme.js',
'shell/shell.js',
'smalltalk/smalltalk.js',
'sql/sql.js',
'stex/stex.js',
'tcl/tcl.js',
'velocity/velocity.js',
'verilog/verilog.js',