mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
codemirro 5.48.4
This commit is contained in:
9
libraries/codemirror/mode/dart/dart.js
vendored
9
libraries/codemirror/mode/dart/dart.js
vendored
@@ -78,6 +78,15 @@
|
||||
if (!stream.eat("*")) return false
|
||||
state.tokenize = tokenNestedComment(1)
|
||||
return state.tokenize(stream, state)
|
||||
},
|
||||
token: function(stream, _, style) {
|
||||
if (style == "variable") {
|
||||
// Assume uppercase symbols are classes using variable-2
|
||||
var isUpper = RegExp('^[_$]*[A-Z][a-zA-Z0-9_$]*$','g');
|
||||
if (isUpper.test(stream.current())) {
|
||||
return 'variable-2';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user