codemirror 3.18 with enabled the fullscreen addon
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user