ace.define("ace/mode/abc_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(r,e,m){"use strict";var o=r("../lib/oop");var T=r("./text_highlight_rules").TextHighlightRules;var A=function(){this.$rules={start:[{token:['zupfnoter.information.comment.line.percentage','information.keyword','in formation.keyword.embedded'],regex:'(%%%%)(hn\\.[a-z]*)(.*)',comment:'Instruction Comment'},{token:['information.comment.line.percentage','information.keyword.embedded'],regex:'(%%)(.*)',comment:'Instruction Comment'},{token:'comment.line.percentage',regex:'%.*',comment:'Comments'},{token:'barline.keyword.operator',regex:'[\\[:]*[|:][|\\]:]*(?:\\[?[0-9]+)?|\\[[0-9]+',comment:'Bar lines'},{token:['information.keyword.embedded','information.argument.string.unquoted'],regex:'(\\[[A-Za-z]:)([^\\]]*\\])',comment:'embedded Header lines'},{token:['information.keyword','information.argument.string.unquoted'],regex:'^([A-Za-z]:)([^%\\\\]*)',comment:'Header lines'},{token:['text','entity.name.function','string.unquoted','text'],regex:'(\\[)([A-Z]:)(.*?)(\\])',comment:'Inline fields'},{token:['accent.constant.language','pitch.constant.numeric','duration.constant.numeric'],regex:'([\\^=_]*)([A-Ga-gz][,\']*)([0-9]*/*[><0-9]*)',comment:'Notes'},{token:'zupfnoter.jumptarget.string.quoted',regex:'[\\"!]\\^\\:.*?[\\"!]',comment:'Zupfnoter jumptarget'},{token:'zupfnoter.goto.string.quoted',regex:'[\\"!]\\^\\@.*?[\\"!]',comment:'Zupfnoter goto'},{token:'zupfnoter.annotation.string.quoted',regex:'[\\"!]\\^\\!.*?[\\"!]',comment:'Zupfnoter annoation'},{token:'zupfnoter.annotationref.string.quoted',regex:'[\\"!]\\^\\#.*?[\\"!]',comment:'Zupfnoter annotation reference'},{token:'chordname.string.quoted',regex:'[\\"!]\\^.*?[\\"!]',comment:'abc chord'},{token:'string.quoted',regex:'[\\"!].*?[\\"!]',comment:'abc annotation'}]};this.normalizeRules();};A.metaData={fileTypes:['abc'],name:'ABC',scopeName:'text.abcnotation'};o.inherits(A,T);e.ABCHighlightRules=A;});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(r,e,a){"use strict";var o=r("../../lib/oop");var R=r("../../range").Range;var B=r("./fold_mode").FoldMode;var F=e.FoldMode=function(c){if(c){this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+c.start));this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+c.end));}};o.inherits(F,B);(function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/;this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/;this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/;this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/;this._getFoldWidgetBase=this.getFoldWidget;this.getFoldWidget=function(s,f,b){var l=s.getLine(b);if(this.singleLineBlockCommentRe.test(l)){if(!this.startRegionRe.test(l)&&!this.tripleStarBlockCommentRe.test(l))return"";}var c=this._getFoldWidgetBase(s,f,b);if(!c&&this.startRegionRe.test(l))return"start";return c;};this.getFoldWidgetRange=function(s,f,b,c){var l=s.getLine(b);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(s,l,b);var m=l.match(this.foldingStartMarker);if(m){var i=m.index;if(m[1])return this.openingBracketBlock(s,m[1],b,i);var d=s.getCommentFoldRange(b,i+m[0].length,1);if(d&&!d.isMultiLine()){if(c){d=this.getSectionRange(s,b);}else if(f!="all")d=null;}return d;}if(f==="markbegin")return;var m=l.match(this.foldingStopMarker);if(m){var i=m.index+m[0].length;if(m[1])return this.closingBracketBlock(s,m[1],b,i);return s.getCommentFoldRange(b,i,-1);}};this.getSectionRange=function(s,b){var l=s.getLine(b);var c=l.search(/\S/);var d=b;var f=l.length;b=b+1;var g=b;var m=s.getLength();while(++bi)break;var h=this.getFoldWidgetRange(s,"all",b);if(h){if(h.start.row<=d){break;}else if(h.isMultiLine()){b=h.end.row;}else if(c==i){break;}}g=b;}return new R(d,f,g,s.getLine(g).length);};this.getCommentRegionBlock=function(s,l,b){var c=l.search(/\s*$/);var d=s.getLength();var f=b;var g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;var h=1;while(++bf){return new R(f,c,i,l.length);}};}).call(F.prototype);});ace.define("ace/mode/abc",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/abc_highlight_rules","ace/mode/folding/cstyle"],function(r,e,m){"use strict";var o=r("../lib/oop");var T=r("./text").Mode;var A=r("./abc_highlight_rules").ABCHighlightRules;var F=r("./folding/cstyle").FoldMode;var M=function(){this.HighlightRules=A;this.foldingRules=new F();this.$behaviour=this.$defaultBehaviour;};o.inherits(M,T);(function(){this.$id="ace/mode/abc"}).call(M.prototype);e.Mode=M;});