%PDF- %PDF-
| Direktori : /proc/self/root/data/old/home/stash/atlassian-stash/static/bower/CodeMirror/mode/haml/ |
| Current File : //proc/self/root/data/old/home/stash/atlassian-stash/static/bower/CodeMirror/mode/haml/test-min.js |
(function(){var B=CodeMirror.getMode({tabSize:4,indentUnit:2},"haml");function A(C){test.mode(C,B,Array.prototype.slice.call(arguments,1))}A("elementName","[tag %h1] Hey There");A("oneElementPerLine","[tag %h1] Hey There %h2");A("idSelector","[tag %h1][attribute #test] Hey There");A("classSelector","[tag %h1][attribute .hello] Hey There");A("docType","[tag !!! XML]");A("comment","[comment / Hello WORLD]");A("notComment","[tag %h1] This is not a / comment ");A("attributes",'[tag %a]([variable title][operator =][string "test"]){[atom :title] [operator =>] [string "test"]}');A("htmlCode","[tag <h1>]Title[tag </h1>]");A("rubyBlock","[operator =][variable-2 @item]");A("selectorRubyBlock","[tag %a.selector=] [variable-2 @item]");A("nestedRubyBlock","[tag %a]",' [operator =][variable puts] [string "test"]');A("multilinePlaintext","[tag %p]"," Hello,"," World");A("multilineRuby","[tag %p]"," [comment -# this is a comment]"," [comment and this is a comment too]"," Date/Time"," [operator -] [variable now] [operator =] [tag DateTime][operator .][variable now]"," [tag %strong=] [variable now]",' [operator -] [keyword if] [variable now] [operator >] [tag DateTime][operator .][variable parse]([string "December 31, 2006"])',' [operator =][string "Happy"]',' [operator =][string "Belated"]',' [operator =][string "Birthday"]');A("multilineComment","[comment /]"," [comment Multiline]"," [comment Comment]");A("hamlComment","[comment -# this is a comment]");A("multilineHamlComment","[comment -# this is a comment]"," [comment and this is a comment too]");A("multilineHTMLComment","[comment <!--]"," [comment what a comment]"," [comment -->]");A("hamlAfterRubyTag","[attribute .block]"," [tag %strong=] [variable now]"," [attribute .test]"," [operator =][variable now]"," [attribute .right]");A("stretchedRuby",'[operator =] [variable puts] [string "Hello"],',' [string "World"]');A("interpolationInHashAttribute",'[tag %div]{[atom :id] [operator =>] [string "#{][variable test][string }_#{][variable ting][string }"]} test');A("interpolationInHTMLAttribute",'[tag %div]([variable title][operator =][string "#{][variable test][string }_#{][variable ting]()[string }"]) Test')})();