'use strict';(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],b):b(CodeMirror)})(function(b){b.defineMode("troff",function(){function b(a){if(a.eatSpace())return null;var b=a.sol(),d=a.next();if("\\"===d){if(a.match("fB")||a.match("fR")||a.match("fI")||a.match("u")||a.match("d")||a.match("%")||a.match("&"))return"string";if(a.match("m["))return a.skipTo("]"),a.next(),"string";if(a.match("s+")||
a.match("s-"))return a.eatWhile(/[\d-]/),"string";(a.match("(")||a.match("*("))&&a.eatWhile(/[\w-]/);return"string"}if(b&&("."===d||"'"===d)&&a.eat("\\")&&a.eat('"'))return a.skipToEnd(),"comment";if(b&&"."===d){if(a.match("B ")||a.match("I ")||a.match("R "))return"attribute";if(a.match("TH ")||a.match("SH ")||a.match("SS ")||a.match("HP "))return a.skipToEnd(),"quote";if(a.match(/[A-Z]/)&&a.match(/[A-Z]/)||a.match(/[a-z]/)&&a.match(/[a-z]/))return"attribute"}a.eatWhile(/[\w-]/);a=a.current();return c.hasOwnProperty(a)?
c[a]:null}var c={};return{startState:function(){return{tokens:[]}},token:function(a,c){return(c.tokens[0]||b)(a,c)}}});b.defineMIME("text/troff","troff");b.defineMIME("text/x-troff","troff");b.defineMIME("application/x-troff","troff")});
