1
0
Fork 0
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:
Harvey Kandola 2017-12-18 13:10:51 +00:00
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
View 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 }]',
'');
})();