%PDF- %PDF-
Direktori : /usr/share/webmin/authentic-theme/unauthenticated/js/codemirror/mode/soy/ |
Current File : //usr/share/webmin/authentic-theme/unauthenticated/js/codemirror/mode/soy/test.js |
!function(){function e(e){test.mode(e,r,Array.prototype.slice.call(arguments,1))}var r=CodeMirror.getMode({indentUnit:2},"soy");e("keywords-test","[keyword {] [keyword as] worrying [keyword and] notorious [keyword as]"," the Fandor-alias assassin, [keyword or]"," Corcand cannot fit [keyword in] [keyword }]"),e("let-test","[keyword {template] [def .name][keyword }]",' [keyword {let] [def $name]: [string "world"][keyword /}]'," [tag&bracket <][tag h1][tag&bracket >]"," Hello, [keyword {][variable-2 $name][keyword }]"," [tag&bracket </][tag h1][tag&bracket >]","[keyword {/template}]",""),e("param-type-test","[keyword {@param] [def a]: [variable-3 list]<[[[variable-3 a]: [variable-3 int], [variable-3 b]: [variable-3 map]<[variable-3 string], [variable-3 bool]>]]>][keyword }]"),e("undefined-var","[keyword {][variable-2&error $var]"),e("param-scope-test","[keyword {template] [def .a][keyword }]"," [keyword {@param] [def x]: [variable-3 string][keyword }]"," [keyword {][variable-2 $x][keyword }]","[keyword {/template}]","","[keyword {template] [def .b][keyword }]"," [keyword {][variable-2&error $x][keyword }]","[keyword {/template}]",""),e("if-variable-test","[keyword {if] [variable-2&error $showThing][keyword }]"," Yo!","[keyword {/if}]",""),e("defined-if-variable-test","[keyword {template] [def .foo][keyword }]"," [keyword {@param?] [def showThing]: [variable-3 bool][keyword }]"," [keyword {if] [variable-2 $showThing][keyword }]"," Yo!"," [keyword {/if}]","[keyword {/template}]",""),e("template-calls-test","[keyword {template] [def .foo][keyword }]"," Yo!","[keyword {/template}]","[keyword {call] [variable-2 .foo][keyword /}]","[keyword {call] [variable foo][keyword /}]","[keyword {call] [variable .bar][keyword /}]","[keyword {call] [variable bar][keyword /}]",""),e("foreach-scope-test","[keyword {@param] [def bar]: [variable-3 string][keyword }]","[keyword {foreach] [def $foo] [keyword in] [variable-2&error $foos][keyword }]"," [keyword {][variable-2 $foo][keyword }]","[keyword {/foreach}]","[keyword {][variable-2&error $foo][keyword }]","[keyword {][variable-2 $bar][keyword }]"),e("foreach-ifempty-indent-test","[keyword {foreach] [def $foo] [keyword in] [variable-2&error $foos][keyword }]"," something","[keyword {ifempty}]"," nothing","[keyword {/foreach}]",""),e("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}]",""),e("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 }]',""),e("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}]",""),e("single-quote-strings","[keyword {][string \"foo\"] [string 'bar'][keyword }]",""),e("literal-comments","[keyword {literal}]/* comment */ // comment[keyword {/literal}]"),e("highlight-command-at-eol","[keyword {msg]"," [keyword }]")}();