module Text.Highlighter.Lexers.CoffeeScript (lexer) where import Text.Regex.PCRE.Light import Text.Highlighter.Types lexer :: Lexer lexer = Lexer { lName = "CoffeeScript" , lAliases = ["coffee-script", "coffeescript"] , lExtensions = [".coffee"] , lMimetypes = ["text/coffeescript"] , lStart = root' , lFlags = [dotall] } commentsandwhitespace' :: TokenMatcher commentsandwhitespace' = [ tok "\\s+" (Arbitrary "Text") , tok "#.*?\\n" (Arbitrary "Comment" :. Arbitrary "Single") ] root' :: TokenMatcher root' = [ tokNext "^(?=\\s|/|