codemirror 3.18 with enabled the fullscreen addon

This commit is contained in:
Paolo
2013-09-26 21:52:53 +02:00
parent 633acffd28
commit ddf1998d49
166 changed files with 3820 additions and 2321 deletions
@@ -36,8 +36,13 @@ CodeMirror.defineMode('smalltalk', function(config) {
token = nextString(stream, new Context(nextString, context));
} else if (aChar === '#') {
stream.eatWhile(/[^ .\[\]()]/);
token.name = 'string-2';
if (stream.peek() === '\'') {
stream.next();
token = nextSymbol(stream, new Context(nextSymbol, context));
} else {
stream.eatWhile(/[^ .\[\]()]/);
token.name = 'string-2';
}
} else if (aChar === '$') {
if (stream.next() === '<') {
@@ -89,6 +94,11 @@ CodeMirror.defineMode('smalltalk', function(config) {
return new Token('string', stream.eat('\'') ? context.parent : context, false);
};
var nextSymbol = function(stream, context) {
stream.eatWhile(/[^']/);
return new Token('string-2', stream.eat('\'') ? context.parent : context, false);
};
var nextTemporaries = function(stream, context) {
var token = new Token(null, context, false);
var aChar = stream.next();