CodeMirror.defineMode("z80",function(){var p=/^(and|x?or|add|sub|mul|mget|mput|ld)\b/i;var m=/^(not|sget)\b/i;var n=/^(shr|shl)\b/i;var b=/^(nop)\b/i;var l=/^(call|sput)\b/i;var i=/^(exit)\b/i;var e=/^(\.end)\b/i;var j=/^(\.d32)\b/i;var h=/^(0x[0-9a-f]{1,8}|[0-9]{1,10})\b/i;var d=/^(0x[0-9a-f]{1,2}|[0-9]{1,3})\b/i;var o=/^\#[01234567]\b/i;function a(r){return h.test(r)?"number":false}function q(r){return d.test(r)?"number":false}function k(r){return o.test(r)?"number":false}function g(r){return h.test(r)?"number":o.test(r)?"number":false}function c(r){return d.test(r)?"number":o.test(r)?"number":false}function f(r){return r==","?"keyword":false}return{startState:function(){return{context:[]}},token:function(v,u){if(!v.column()){u.context=null}if(v.eatSpace()){return null}if(v.eatWhile(/\w|\#|\./)){var s=v.current();if(u.context==null){if(p.test(s)){u.context=[k,f,g]}else{if(m.test(s)){u.context=[k]}else{if(n.test(s)){u.context=[k,f,c]}else{if(b.test(s)){u.context=[q]}else{if(l.test(s)){u.context=[g]}else{if(i.test(s)){u.context=[]}else{if(e.test(s)){u.context=[];return"def"}else{if(j.test(s)){u.context=[a];return"def"}else{return"error"}}}}}}}}return"keyword"}else{if(u.context.length!=0){var t=u.context[0](s);if(t!==false){u.context.shift();return t}}}return"error"}if(v.eat(",")){var s=v.current();if(u.context.length!=0){var t=u.context[0](s);if(t!==false){u.context.shift();return t}}return"error"}if(v.eat(";")){v.skipToEnd();return"comment"}else{v.next()}return null}}});CodeMirror.defineMIME("text/x-imicil","MiMicIL");