Sha256: 6fcb2c0a0579e4d0dd61eec92cd2f7cd1c960982034617a0966367a6bad18f35

Contents?: true

Size: 1.28 KB

Versions: 10

Compression:

Stored size: 1.28 KB

Contents

ace.define("ace/mode/latex",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/latex_highlight_rules","ace/range"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("../tokenizer").Tokenizer,g=a("./latex_highlight_rules").LatexHighlightRules,h=a("../range").Range,i=function(){this.$tokenizer=new f((new g).getRules())};d.inherits(i,e),function(){this.toggleCommentLines=function(a,b,c,d){var e=!0,f=/^(\s*)\%/;for(var g=c;g<=d;g++)if(!f.test(b.getLine(g))){e=!1;break}if(e){var i=new h(0,0,0,0);for(var g=c;g<=d;g++){var j=b.getLine(g),k=j.match(f);i.start.row=g,i.end.row=g,i.end.column=k[0].length,b.replace(i,k[1])}}else b.indentRows(c,d,"%")},this.getNextLineIndent=function(a,b,c){return this.$getIndent(b)}}.call(i.prototype),b.Mode=i}),ace.define("ace/mode/latex_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"keyword",regex:"\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"string",regex:"\\$(?:(?:\\\\.)|(?:[^\\$\\\\]))*?\\$"},{token:"comment",regex:"%.*$"}]}};d.inherits(f,e),b.LatexHighlightRules=f})

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
aced_rails-0.1.2 vendor/assets/javascripts/ace/mode-latex-noconflict.js
ace-rails-ap-0.0.3 vendor/assets/javascripts/mode-latex-noconflict.js
daftos-0.4.1 lib/apps/texteditor/js/mode-latex-noconflict.js
daftos-0.4.0 lib/apps/texteditor/js/mode-latex-noconflict.js
daftos-0.3.0 lib/apps/texteditor/js/mode-latex-noconflict.js
daftos-0.2.0 lib/apps/texteditor/js/mode-latex-noconflict.js
aced_rails-0.1.1 vendor/assets/javascripts/ace/mode-latex-noconflict.js
aced_rails-0.1.0 vendor/assets/javascripts/ace/mode-latex-noconflict.js
aced_rails-0.0.2 vendor/assets/javascripts/ace/mode-latex-noconflict.js
aced_rails-0.0.1 vendor/assets/javascripts/ace/mode-latex-noconflict.js