ace.define("ace/mode/rst_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(r,e,m){"use strict";var o=r("../lib/oop");var l=r("../lib/lang");var T=r("./text_highlight_rules").TextHighlightRules;var R=function(){var t={title:"markup.heading",list:"markup.heading",table:"constant",directive:"keyword.operator",entity:"string",link:"markup.underline.list",bold:"markup.bold",italic:"markup.italic",literal:"support.function",comment:"comment"};var s="(^|\\s|[\"'(<\\[{\\-/:])";var a="(?:$|(?=\\s|[\\\\.,;!?\\-/:\"')>\\]}]))";this.$rules={"start":[{token:t.title,regex:"(^)([\\=\\-`:\\.'\"~\\^_\\*\\+#])(\\2{2,}\\s*$)"},{token:["text",t.directive,t.literal],regex:"(^\\s*\\.\\. )([^: ]+::)(.*$)",next:"codeblock"},{token:t.directive,regex:"::$",next:"codeblock"},{token:[t.entity,t.link],regex:"(^\\.\\. _[^:]+:)(.*$)"},{token:[t.entity,t.link],regex:"(^__ )(https?://.*$)"},{token:t.entity,regex:"^\\.\\. \\[[^\\]]+\\] "},{token:t.comment,regex:"^\\.\\. .*$",next:"comment"},{token:t.list,regex:"^\\s*[\\*\\+-] "},{token:t.list,regex:"^\\s*(?:[A-Za-z]|[0-9]+|[ivxlcdmIVXLCDM]+)\\. "},{token:t.list,regex:"^\\s*\\(?(?:[A-Za-z]|[0-9]+|[ivxlcdmIVXLCDM]+)\\) "},{token:t.table,regex:"^={2,}(?: +={2,})+$"},{token:t.table,regex:"^\\+-{2,}(?:\\+-{2,})+\\+$"},{token:t.table,regex:"^\\+={2,}(?:\\+={2,})+\\+$"},{token:["text",t.literal],regex:s+"(``)(?=\\S)",next:"code"},{token:["text",t.bold],regex:s+"(\\*\\*)(?=\\S)",next:"bold"},{token:["text",t.italic],regex:s+"(\\*)(?=\\S)",next:"italic"},{token:t.entity,regex:"\\|[\\w\\-]+?\\|"},{token:t.entity,regex:":[\\w-:]+:`\\S",next:"entity"},{token:["text",t.entity],regex:s+"(_`)(?=\\S)",next:"entity"},{token:t.entity,regex:"_[A-Za-z0-9\\-]+?"},{token:["text",t.link],regex:s+"(`)(?=\\S)",next:"link"},{token:t.link,regex:"[A-Za-z0-9\\-]+?__?"},{token:t.link,regex:"\\[[^\\]]+?\\]_"},{token:t.link,regex:"https?://\\S+"},{token:t.table,regex:"\\|"}],"codeblock":[{token:t.literal,regex:"^ +.+$",next:"codeblock"},{token:t.literal,regex:'^$',next:"codeblock"},{token:"empty",regex:"",next:"start"}],"code":[{token:t.literal,regex:"\\S``"+a,next:"start"},{defaultToken:t.literal}],"bold":[{token:t.bold,regex:"\\S\\*\\*"+a,next:"start"},{defaultToken:t.bold}],"italic":[{token:t.italic,regex:"\\S\\*"+a,next:"start"},{defaultToken:t.italic}],"entity":[{token:t.entity,regex:"\\S`"+a,next:"start"},{defaultToken:t.entity}],"link":[{token:t.link,regex:"\\S`__?"+a,next:"start"},{defaultToken:t.link}],"comment":[{token:t.comment,regex:"^ +.+$",next:"comment"},{token:t.comment,regex:'^$',next:"comment"},{token:"empty",regex:"",next:"start"}]};};o.inherits(R,T);e.RSTHighlightRules=R;});ace.define("ace/mode/rst",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/rst_highlight_rules"],function(r,e,m){"use strict";var o=r("../lib/oop");var T=r("./text").Mode;var R=r("./rst_highlight_rules").RSTHighlightRules;var M=function(){this.HighlightRules=R;};o.inherits(M,T);(function(){this.type="text";this.$id="ace/mode/rst";}).call(M.prototype);e.Mode=M;});