|
|
define("ace/mode/d",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/d_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./d_highlight_rules").DHighlightRules,u=e("./folding/cstyle").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new u};r.inherits(a,i),function(){this.lineCommentStart="/\\+",this.blockComment={start:"/*",end:"*/"}}.call(a.prototype),t.Mode=a}),define("ace/mode/d_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"punctuation.definition.comment.d",regex:"/\\*\\*/"},{include:"text.html.javadoc"},{token:["meta.definition.class.d","storage.modifier.d","storage.type.structure.d","meta.definition.class.d","entity.name.type.class.d","meta.definition.class.d","meta.definition.class.d","storage.type.template.d","meta.definition.class.d","meta.definition.class.d","meta.definition.class.d","punctuation.separator.inheritance.d","meta.definition.class.d","entity.other.inherited-class.d","meta.definition.class.d","entity.other.inherited-class.d","meta.definition.class.d","entity.other.inherited-class.d","meta.definition.class.d","entity.other.inherited-class.d","meta.definition.class.d","entity.other.inherited-class.d","meta.definition.class.d","entity.other.inherited-class.d","meta.definition.class.d","entity.other.inherited-class.d"],regex:"^(\\s*)((?:\\b(?:public|private|protected|static|final|native|synchronized|abstract|export)\\b\\s*)*)(class|interface)(\\s+)(\\w+)(\\s*)(?:(\\(\\s*)([^\\)]+)(\\s*\\))|)(\\s*)(?:(\\s*)(:)(\\s*)(\\w+)(?:(\\s*,\\s*)(\\w+))?(?:(\\s*,\\s*)(\\w+))?(?:(\\s*,\\s*)(\\w+))?(?:(\\s*,\\s*)(\\w+))?(?:(\\s*,\\s*)(\\w+))?(?:(\\s*,\\s*)(\\w+))?)?",push:[{token:"meta.definition.class.d",regex:"(?={)",next:"pop"},{token:"storage.modifier.d",regex:"\\b(?:_|:)\\b",push:[{token:[],regex:"(?={)",next:"pop"},{include:"#all-types"},{defaultToken:"meta.definition.class.extends.d"}]},{defaultToken:"meta.definition.class.d"}]},{token:["meta.definition.struct.d","storage.modifier.d","storage.type.structure.d","meta.definition.struct.d","entity.name.type.struct.d","meta.definition.struct.d","meta.definition.struct.d","storage.type.template.d","meta.definition.struct.d","meta.definition.struct.d"],regex:"^(\\s*)((?:\\b(?:public|private|protected|static|final|native|synchronized|abstract|export)\\b\\s*)*)(struct)(\\s+)(\\w+)(\\s*)(?:(\\(\\s*)([^\\)]+)(\\s*\\))|)(\\s*)",push:[{token:"meta.definition.struct.d",regex:"(?={)",next:"pop"},{token:"storage.modifier.d",regex:"\\b(?:_|:)\\b",push:[{token:[],regex:"(?={)",next:"pop"},{include:"#all-types"},{defaultToken:"meta.definition.class.extends.d"}]},{defaultToken:"meta.definition.struct.d"}]},{token:["meta.definition.constructor.d","storage.modifier.d","entity.name.function.constructor.d","meta.definition.constructor.d"],regex:"^(\\s*)((?:\\b(?:public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient|export)\\b\\s*)*)(\\bthis)(\\s*)(?!.*;)(?=\\()"},{token:["storage.modifier.d","entity.name.function.destructor.d","meta.definition.destructor.d","meta.definition.destructor.d"],regex:"(?:^|)((?:\\b(?:public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient|export)\\b\\s*)*)(~this)(\\s*)(\\()",TODO:"(?<!else|new|=) were disallowed in original regex"},{token:["meta.definition.method.d","storage.modifier.d","storage.type.structure.d","meta.definition.method.d","entity.name.function.d","meta.definition.method.d"],regex:"^(\\s*)((?:\\b(?:public|private|protected|static|final|native|lazy|synchronized|abstract|threadsafe|transient|export)\\b\\s*)*)(\\b(?:void|boolean|byte|char|short|int|float|long|double|[\\w_]+[\\w0-9_]*|(?:\\w+\\.)*[A-Z]\\w+)\\b(?:<(?:(?:\\w+\\.)*[A-Z]\\w+(?:\\s*,\\s*)?)+>|(?:\\[\\s*\\])*)?)(\\s*)(\\w+)(\\s*)(?!.*;)(?=\\()"},{token:"constant.other.d",regex:"\\b[A-Z][A-Z0-9_]+\\b"},{include:"
|