fix typos
This commit is contained in:
parent
bc599f23d6
commit
9ddf039cf6
2 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
define('ace/mode/ls', function(require, exports, module){
|
define(function(require, exports, module){
|
||||||
var identifier, LiveScriptMode, keywordend, stringfill;
|
var identifier, LiveScriptMode, keywordend, stringfill;
|
||||||
identifier = '(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*';
|
identifier = '(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*';
|
||||||
exports.Mode = LiveScriptMode = (function(superclass){
|
exports.Mode = LiveScriptMode = (function(superclass){
|
||||||
|
|
|
||||||
|
|
@ -174,11 +174,11 @@ var RubyHighlightRules = function() {
|
||||||
}, {
|
}, {
|
||||||
stateName: "heredoc",
|
stateName: "heredoc",
|
||||||
token : function(value, currentState, stack) {
|
token : function(value, currentState, stack) {
|
||||||
var next = value[3] == '-' ? "heredoc" : "indentedHeredoc";
|
var next = value[2] == '-' ? "indentedHeredoc" : "heredoc";
|
||||||
var tokens = value.split(this.splitRegex);
|
var tokens = value.split(this.splitRegex);
|
||||||
stack.push(next, tokens[3]);
|
stack.push(next, tokens[3]);
|
||||||
return [
|
return [
|
||||||
{type:"constant", value: "<<"},
|
{type:"constant", value: tokens[1]},
|
||||||
{type:"string", value: tokens[2]},
|
{type:"string", value: tokens[2]},
|
||||||
{type:"support.class", value: tokens[3]},
|
{type:"support.class", value: tokens[3]},
|
||||||
{type:"string", value: tokens[4]}
|
{type:"string", value: tokens[4]}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue