var e={};function c(a){if(a.eatSpace())return null;var r=a.sol(),n=a.next();if(n==="\\")return a.match("fB")||a.match("fR")||a.match("fI")||a.match("u")||a.match("d")||a.match("%")||a.match("&")?"string":a.match("m[")?(a.skipTo("]"),a.next(),"string"):a.match("s+")||a.match("s-")?(a.eatWhile(/[\d-]/),"string"):((a.match("(")||a.match("*("))&&a.eatWhile(/[\w-]/),"string");if(r&&(n==="."||n==="'")&&a.eat("\\")&&a.eat('"'))return a.skipToEnd(),"comment";if(r&&n==="."){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-]/);var t=a.current();return e.hasOwnProperty(t)?e[t]:null}function h(a,r){return(r.tokens[0]||c)(a,r)}const m={name:"troff",startState:function(){return{tokens:[]}},token:function(a,r){return h(a,r)}};export{m as t};
