mirror of
https://github.com/documize/community.git
synced 2025-07-30 18:49:43 +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
31
gui/public/codemirror/mode/soy/test.js
vendored
Executable file → Normal file
31
gui/public/codemirror/mode/soy/test.js
vendored
Executable file → Normal file
|
@ -80,4 +80,35 @@
|
|||
' nothing',
|
||||
'[keyword {/foreach}]',
|
||||
'');
|
||||
|
||||
MT('nested-kind-test',
|
||||
'[keyword {template] [def .foo] [attribute kind]=[string "html"][keyword }]',
|
||||
' [tag&bracket <][tag div][tag&bracket >]',
|
||||
' [keyword {call] [variable .bar][keyword }]',
|
||||
' [keyword {param] [attribute kind]=[string "js"][keyword }]',
|
||||
' [keyword var] [def bar] [operator =] [number 5];',
|
||||
' [keyword {/param}]',
|
||||
' [keyword {/call}]',
|
||||
' [tag&bracket </][tag div][tag&bracket >]',
|
||||
'[keyword {/template}]',
|
||||
'');
|
||||
|
||||
MT('tag-starting-with-function-call-is-not-a-keyword',
|
||||
'[keyword {]index([variable-2&error $foo])[keyword }]',
|
||||
'[keyword {css] [string "some-class"][keyword }]',
|
||||
'[keyword {]css([string "some-class"])[keyword }]',
|
||||
'');
|
||||
|
||||
MT('allow-missing-colon-in-@param',
|
||||
'[keyword {template] [def .foo][keyword }]',
|
||||
' [keyword {@param] [def showThing] [variable-3 bool][keyword }]',
|
||||
' [keyword {if] [variable-2 $showThing][keyword }]',
|
||||
' Yo!',
|
||||
' [keyword {/if}]',
|
||||
'[keyword {/template}]',
|
||||
'');
|
||||
|
||||
MT('single-quote-strings',
|
||||
'[keyword {][string "foo"] [string \'bar\'][keyword }]',
|
||||
'');
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue