mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
upgraded libs and improved Markdown editing experience
This commit is contained in:
parent
2e146cf767
commit
ea1a8000ee
165 changed files with 15930 additions and 19013 deletions
9
app/public/codemirror/mode/mllike/mllike.js
vendored
9
app/public/codemirror/mode/mllike/mllike.js
vendored
|
@ -83,9 +83,12 @@ CodeMirror.defineMode('mllike', function(_config, parserConfig) {
|
|||
if ( /[+\-*&%=<>!?|]/.test(ch)) {
|
||||
return 'operator';
|
||||
}
|
||||
stream.eatWhile(/\w/);
|
||||
var cur = stream.current();
|
||||
return words.hasOwnProperty(cur) ? words[cur] : 'variable';
|
||||
if (/[\w\xa1-\uffff]/.test(ch)) {
|
||||
stream.eatWhile(/[\w\xa1-\uffff]/);
|
||||
var cur = stream.current();
|
||||
return words.hasOwnProperty(cur) ? words[cur] : 'variable';
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
function tokenString(stream, state) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue