module Text.Highlighter.Lexers.LighttpdConf (lexer) where

import Text.Regex.PCRE.Light
import Text.Highlighter.Types

lexer :: Lexer
lexer = Lexer
    { lName = "\76\105\103\104\116\116\112\100\32\99\111\110\102\105\103\117\114\97\116\105\111\110\32\102\105\108\101"
    , lAliases = ["\108\105\103\104\116\121", "\108\105\103\104\116\116\112\100"]
    , lExtensions = []
    , lMimetypes = ["\116\101\120\116\47\120\45\108\105\103\104\116\116\112\100\45\99\111\110\102"]
    , lStart = root'
    , lFlags = [multiline]
    }

root' :: TokenMatcher
root' =
    [ tok "\35\46\42\92\110" (Arbitrary "\67\111\109\109\101\110\116" :. Arbitrary "\83\105\110\103\108\101")
    , tok "\47\92\83\42" (Arbitrary "\78\97\109\101")
    , tok "\91\97\45\122\65\45\90\46\95\45\93\43" (Arbitrary "\75\101\121\119\111\114\100")
    , tok "\92\100\43\92\46\92\100\43\92\46\92\100\43\92\46\92\100\43\40\63\58\47\92\100\43\41\63" (Arbitrary "\76\105\116\101\114\97\108" :. Arbitrary "\78\117\109\98\101\114")
    , tok "\91\48\45\57\93\43" (Arbitrary "\76\105\116\101\114\97\108" :. Arbitrary "\78\117\109\98\101\114")
    , tok "\61\62\124\61\126\124\92\43\61\124\61\61\124\61\124\92\43" (Arbitrary "\79\112\101\114\97\116\111\114")
    , tok "\92\36\91\65\45\90\93\43" (Arbitrary "\78\97\109\101" :. Arbitrary "\66\117\105\108\116\105\110")
    , tok "\91\40\41\123\125\92\91\92\93\44\93" (Arbitrary "\80\117\110\99\116\117\97\116\105\111\110")
    , tok "\34\40\91\94\34\92\92\93\42\40\63\58\92\92\46\91\94\34\92\92\93\42\41\42\41\34" (Arbitrary "\76\105\116\101\114\97\108" :. Arbitrary "\83\116\114\105\110\103" :. Arbitrary "\68\111\117\98\108\101")
    , tok "\92\115\43" (Arbitrary "\84\101\120\116")
    ]