{-# LANGUAGE OverloadedStrings #-}
module Skylighting.Syntax.Rest (syntax) where

import Skylighting.Types

syntax :: Syntax
syntax = read $! "Syntax {sName = \"reStructuredText\", sFilename = \"rest.xml\", sShortname = \"Rest\", sContexts = fromList [(\"Code\",Context {cName = \"Code\", cSyntax = \"reStructuredText\", cRules = [Rule {rMatcher = RegExpr (RE {reString = \"%1\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = True, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(.|$)\", reCaseSensitive = True}), rAttribute = NormalTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = True, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = [Pop,Pop]}], cAttribute = DataTypeTok, cLineEmptyContext = [], cLineEndContext = [], cLineBeginContext = [], cFallthrough = False, cFallthroughContext = [], cDynamic = True}),(\"CodeBlock\",Context {cName = \"CodeBlock\", cSyntax = \"reStructuredText\", cRules = [Rule {rMatcher = RegExpr (RE {reString = \"(\\\\s+)(?=\\\\S)\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = [Push (\"reStructuredText\",\"Code\")]}], cAttribute = DataTypeTok, cLineEmptyContext = [], cLineEndContext = [], cLineBeginContext = [], cFallthrough = False, cFallthroughContext = [], cDynamic = False}),(\"Comment\",Context {cName = \"Comment\", cSyntax = \"reStructuredText\", cRules = [Rule {rMatcher = RegExpr (RE {reString = \"%1   \", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = True, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(.|$)\", reCaseSensitive = True}), rAttribute = NormalTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = True, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = [Pop]},Rule {rMatcher = IncludeRules (\"Alerts\",\"\"), rAttribute = CommentTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []}], cAttribute = CommentTok, cLineEmptyContext = [], cLineEndContext = [], cLineBeginContext = [], cFallthrough = False, cFallthroughContext = [], cDynamic = True}),(\"Field\",Context {cName = \"Field\", cSyntax = \"reStructuredText\", cRules = [Rule {rMatcher = DetectChar ':', rAttribute = FunctionTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = [Pop]},Rule {rMatcher = Detect2Chars '\\\\' ':', rAttribute = FunctionTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])\\\\*\\\\*[^\\\\s].*\\\\*\\\\*(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = FunctionTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])\\\\*[^\\\\s].*\\\\*(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = FunctionTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = IncludeRules (\"reStructuredText\",\"InlineMarkup\"), rAttribute = FunctionTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []}], cAttribute = FunctionTok, cLineEmptyContext = [], cLineEndContext = [], cLineBeginContext = [], cFallthrough = False, cFallthroughContext = [], cDynamic = False}),(\"InlineMarkup\",Context {cName = \"InlineMarkup\", cSyntax = \"reStructuredText\", cRules = [Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])``[^\\\\s].*``(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])\\\\|[^\\\\s].*\\\\|(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = FunctionTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])_`[^\\\\s].*`(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = FunctionTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])\\\\[[\\\\w_\\\\.:\\\\+\\\\-]+\\\\]_(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = OtherTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])`[^\\\\s].*`_(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = OtherTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])\\\\w+_(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = OtherTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])`[^\\\\s].*`(?=:[\\\\w-_\\\\.\\\\+]+:)\", reCaseSensitive = True}), rAttribute = DecValTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = [Push (\"reStructuredText\",\"TrailingRole\")]},Rule {rMatcher = RegExpr (RE {reString = \":[\\\\w-_\\\\.\\\\+]+:(?=`)\", reCaseSensitive = True}), rAttribute = KeywordTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = [Push (\"reStructuredText\",\"Role\")]}], cAttribute = NormalTok, cLineEmptyContext = [], cLineEndContext = [], cLineBeginContext = [], cFallthrough = False, cFallthroughContext = [], cDynamic = False}),(\"InterpretedText\",Context {cName = \"InterpretedText\", cSyntax = \"reStructuredText\", cRules = [Rule {rMatcher = DetectChar '`', rAttribute = DecValTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = [Pop]}], cAttribute = DecValTok, cLineEmptyContext = [], cLineEndContext = [Pop], cLineBeginContext = [], cFallthrough = False, cFallthroughContext = [], cDynamic = False}),(\"Normal\",Context {cName = \"Normal\", cSyntax = \"reStructuredText\", cRules = [Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])\\\\*\\\\*[^\\\\s].*\\\\*\\\\*(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = NormalTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"(^|[-\\\\s'\\\"\\\\(\\\\[{</:\\226\\128\\152\\226\\128\\156\\226\\128\\153\\194\\171\\194\\161\\194\\191\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 ])\\\\*[^\\\\s].*\\\\*(?=[-\\\\s\\226\\128\\153\\226\\128\\157\\194\\187\\226\\128\\144\\226\\128\\145\\226\\128\\146\\226\\128\\147\\226\\128\\148 '\\\"\\\\)\\\\]}>/:\\\\.,;!\\\\?\\\\\\\\]|$)\", reCaseSensitive = True}), rAttribute = NormalTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = IncludeRules (\"reStructuredText\",\"InlineMarkup\"), rAttribute = NormalTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"\\\\s*\\\\.\\\\. \\\\[(\\\\d+|#|\\\\*|#[\\\\w_\\\\.:\\\\+\\\\-]+)\\\\]\\\\s\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"\\\\s*\\\\.\\\\. \\\\[[\\\\w_\\\\.:\\\\+\\\\-]+\\\\]\\\\s\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"\\\\s*(\\\\.\\\\. (__:|_[\\\\w_\\\\.:\\\\+\\\\- ]+:(\\\\s|$))|__ )\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"\\\\s*\\\\.\\\\. code-block::\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = [Push (\"reStructuredText\",\"CodeBlock\")]},Rule {rMatcher = RegExpr (RE {reString = \"\\\\s*\\\\.\\\\. [\\\\w-_\\\\.]+::(\\\\s|$)\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \"::$\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = [Push (\"reStructuredText\",\"CodeBlock\")]},Rule {rMatcher = RegExpr (RE {reString = \"\\\\s*\\\\.\\\\. \\\\|[\\\\w_\\\\.:\\\\+\\\\- ]+\\\\|\\\\s+[\\\\w_\\\\.:\\\\+\\\\-]+::\\\\s\", reCaseSensitive = True}), rAttribute = DataTypeTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = []},Rule {rMatcher = RegExpr (RE {reString = \":(?=([^:]*\\\\\\\\:)*[^:]*:(\\\\s|$))\", reCaseSensitive = True}), rAttribute = FunctionTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = True, rColumn = Nothing, rContextSwitch = [Push (\"reStructuredText\",\"Field\")]},Rule {rMatcher = RegExpr (RE {reString = \"(\\\\s*)\\\\.\\\\.\\\\s(?![\\\\w-_\\\\.]+::(\\\\s|$))\", reCaseSensitive = True}), rAttribute = CommentTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Just 0, rContextSwitch = [Push (\"reStructuredText\",\"Comment\")]}], cAttribute = NormalTok, cLineEmptyContext = [], cLineEndContext = [], cLineBeginContext = [], cFallthrough = False, cFallthroughContext = [], cDynamic = False}),(\"Role\",Context {cName = \"Role\", cSyntax = \"reStructuredText\", cRules = [Rule {rMatcher = DetectChar '`', rAttribute = DecValTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = [Pop,Push (\"reStructuredText\",\"InterpretedText\")]}], cAttribute = KeywordTok, cLineEmptyContext = [], cLineEndContext = [Pop], cLineBeginContext = [], cFallthrough = False, cFallthroughContext = [], cDynamic = False}),(\"TrailingRole\",Context {cName = \"TrailingRole\", cSyntax = \"reStructuredText\", cRules = [Rule {rMatcher = RegExpr (RE {reString = \":[\\\\w-_\\\\.\\\\+]+:\", reCaseSensitive = True}), rAttribute = KeywordTok, rIncludeAttribute = False, rDynamic = False, rCaseSensitive = True, rChildren = [], rLookahead = False, rFirstNonspace = False, rColumn = Nothing, rContextSwitch = [Pop]}], cAttribute = KeywordTok, cLineEmptyContext = [], cLineEndContext = [Pop], cLineBeginContext = [], cFallthrough = False, cFallthroughContext = [], cDynamic = False})], sAuthor = \"\", sVersion = \"2\", sLicense = \"\", sExtensions = [\"*.rst\"], sStartingContext = \"Normal\"}"