mirror of
https://github.com/documize/community.git
synced 2025-08-04 21:15:24 +02:00
CodeMirror dependency upgraded to v5.32.0
For handling Markdown and Code section types
This commit is contained in:
parent
3337db6b27
commit
0336f84a83
351 changed files with 3408 additions and 1945 deletions
16
gui/public/codemirror/mode/clike/test.js
vendored
Executable file → Normal file
16
gui/public/codemirror/mode/clike/test.js
vendored
Executable file → Normal file
|
@ -6,8 +6,8 @@
|
|||
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
|
||||
|
||||
MT("indent",
|
||||
"[variable-3 void] [def foo]([variable-3 void*] [variable a], [variable-3 int] [variable b]) {",
|
||||
" [variable-3 int] [variable c] [operator =] [variable b] [operator +]",
|
||||
"[type void] [def foo]([type void*] [variable a], [type int] [variable b]) {",
|
||||
" [type int] [variable c] [operator =] [variable b] [operator +]",
|
||||
" [number 1];",
|
||||
" [keyword return] [operator *][variable a];",
|
||||
"}");
|
||||
|
@ -21,9 +21,9 @@
|
|||
"}");
|
||||
|
||||
MT("def",
|
||||
"[variable-3 void] [def foo]() {}",
|
||||
"[type void] [def foo]() {}",
|
||||
"[keyword struct] [def bar]{}",
|
||||
"[variable-3 int] [variable-3 *][def baz]() {}");
|
||||
"[type int] [type *][def baz]() {}");
|
||||
|
||||
MT("def_new_line",
|
||||
"::[variable std]::[variable SomeTerribleType][operator <][variable T][operator >]",
|
||||
|
@ -37,10 +37,10 @@
|
|||
|
||||
MT("preprocessor",
|
||||
"[meta #define FOO 3]",
|
||||
"[variable-3 int] [variable foo];",
|
||||
"[type int] [variable foo];",
|
||||
"[meta #define BAR\\]",
|
||||
"[meta 4]",
|
||||
"[variable-3 unsigned] [variable-3 int] [variable bar] [operator =] [number 8];",
|
||||
"[type unsigned] [type int] [variable bar] [operator =] [number 8];",
|
||||
"[meta #include <baz> ][comment // comment]")
|
||||
|
||||
|
||||
|
@ -52,4 +52,8 @@
|
|||
"[number 0b10'000];",
|
||||
"[number 0x10'000];",
|
||||
"[string '100000'];");
|
||||
|
||||
MTCPP("ctor_dtor",
|
||||
"[def Foo::Foo]() {}",
|
||||
"[def Foo::~Foo]() {}");
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue