"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mode/clike/clike.js" between
CodeMirror-5.58.2.tar.gz and CodeMirror-5.58.3.tar.gz

About: CodeMirror is a text editor implemented in JavaScript for the browser and specialized for editing code.

clike.js  (CodeMirror-5.58.2):clike.js  (CodeMirror-5.58.3)
skipping to change at line 85 skipping to change at line 85
function tokenBase(stream, state) { function tokenBase(stream, state) {
var ch = stream.next(); var ch = stream.next();
if (hooks[ch]) { if (hooks[ch]) {
var result = hooks[ch](stream, state); var result = hooks[ch](stream, state);
if (result !== false) return result; if (result !== false) return result;
} }
if (ch == '"' || ch == "'") { if (ch == '"' || ch == "'") {
state.tokenize = tokenString(ch); state.tokenize = tokenString(ch);
return state.tokenize(stream, state); return state.tokenize(stream, state);
} }
if (isPunctuationChar.test(ch)) {
curPunc = ch;
return null;
}
if (numberStart.test(ch)) { if (numberStart.test(ch)) {
stream.backUp(1) stream.backUp(1)
if (stream.match(number)) return "number" if (stream.match(number)) return "number"
stream.next() stream.next()
} }
if (isPunctuationChar.test(ch)) {
curPunc = ch;
return null;
}
if (ch == "/") { if (ch == "/") {
if (stream.eat("*")) { if (stream.eat("*")) {
state.tokenize = tokenComment; state.tokenize = tokenComment;
return tokenComment(stream, state); return tokenComment(stream, state);
} }
if (stream.eat("/")) { if (stream.eat("/")) {
stream.skipToEnd(); stream.skipToEnd();
return "comment"; return "comment";
} }
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)