mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
codemirror 5.65.9
This commit is contained in:
6
libraries/codemirror/mode/r/r.js
vendored
6
libraries/codemirror/mode/r/r.js
vendored
@@ -1,5 +1,5 @@
|
||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
||||
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||
|
||||
(function(mod) {
|
||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||
@@ -54,9 +54,9 @@ CodeMirror.defineMode("r", function(config) {
|
||||
} else if (ch == "`") {
|
||||
stream.match(/[^`]+`/);
|
||||
return "variable-3";
|
||||
} else if (ch == "." && stream.match(/.[.\d]+/)) {
|
||||
} else if (ch == "." && stream.match(/.(?:[.]|\d+)/)) {
|
||||
return "keyword";
|
||||
} else if (/[\w\.]/.test(ch) && ch != "_") {
|
||||
} else if (/[a-zA-Z\.]/.test(ch)) {
|
||||
stream.eatWhile(/[\w\.]/);
|
||||
var word = stream.current();
|
||||
if (atoms.propertyIsEnumerable(word)) return "atom";
|
||||
|
||||
Reference in New Issue
Block a user