" >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","NoWiki"))
<|>
((pString False "" >>= withAttribute KeywordTok) >>~ pushContext ("MediaWiki","Pre"))
<|>
((parseRules ("MediaWiki","FindSyntaxHighlightingHtmlElement")))
<|>
((pRegExpr regex_'5b'3c'5d'5b'5e'3e'5d'2b'5b'3e'5d >>= withAttribute KeywordTok))
<|>
((pColumn 0 >> pRegExpr regex_'5b'5cs'5d >>= withAttribute NormalTok) >>~ pushContext ("MediaWiki","Unformatted"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","normal")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","TableHeader") =
(((pDetect2Chars False '{' '|' >>= withAttribute DecValTok))
<|>
((parseRules ("MediaWiki","FindHtmlStartTagAttributes")))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","TableHeader")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","TableContent") =
(((pString False "" >>= withAttribute CommentTok) >>~ (popContext))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","comment")) >> pDefault >>= withAttribute CommentTok))
parseRules ("MediaWiki","DelimitedURL") =
(((pDetectChar False ']' >>= withAttribute DecValTok) >>~ (popContext))
<|>
((pDetectChar False '[' >>= withAttribute DecValTok))
<|>
((lookAhead (pRegExpr regex_'28http'3a'7chttps'3a'7cftp'3a'7cmailto'3a'29'5b'5e'5d'7c_'5d'2a'28'3f'3d'24'7c'5b'5d'7c'5cs'5d'29) >> pushContext ("MediaWiki","DelimitedUrlLink") >> currentContext >>= parseRules))
<|>
((pDetectChar False ' ' >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","URLTag"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","DelimitedURL")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","DelimitedUrlLink") =
(((parseRules ("MediaWiki","FindTemplate")))
<|>
((lookAhead (pDetectChar False ' ') >> (popContext) >> currentContext >>= parseRules))
<|>
((lookAhead (pDetectChar False ']') >> (popContext) >> currentContext >>= parseRules))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","DelimitedUrlLink")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","LooseURL") =
(((parseRules ("MediaWiki","FindTemplate")))
<|>
((pDetectChar False ' ' >>= withAttribute DecValTok) >>~ (popContext))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","LooseURL")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","LooseURLWithinTemplate") =
(((parseRules ("MediaWiki","FindTemplate")))
<|>
((lookAhead (pDetect2Chars False '}' '}') >> (popContext) >> currentContext >>= parseRules))
<|>
((pDetectChar False ' ' >>= withAttribute DecValTok) >>~ (popContext))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","LooseURLWithinTemplate")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","URLTag") =
(((parseRules ("MediaWiki","FindTextDecorations")))
<|>
((parseRules ("MediaWiki","FindTemplate")))
<|>
((lookAhead (pDetectChar False ']') >> (popContext) >> currentContext >>= parseRules))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","URLTag")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkWithoutDescriptionRules") =
(((parseRules ("MediaWiki","FindTemplate")))
<|>
((parseRules ("MediaWiki","FindHtmlEntities")))
<|>
((pDetect2Chars False '[' '[' >>= withAttribute DecValTok))
<|>
((pDetect2Chars False ']' ']' >>= withAttribute DecValTok) >>~ (popContext))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkWithoutDescriptionRules")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkWithDescriptionRules") =
(((parseRules ("MediaWiki","WikiLinkWithoutDescriptionRules")))
<|>
((pDetectChar False '#' >>= withAttribute DecValTok))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkWithDescriptionRules")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLink") =
(((parseRules ("MediaWiki","WikiLinkWithDescriptionRules")))
<|>
((pDetectChar False '|' >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","WikiLinkDescription"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLink")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkBoldWithDescription") =
(((parseRules ("MediaWiki","WikiLinkWithDescriptionRules")))
<|>
((pDetectChar False '|' >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","WikiLinkDescriptionBold"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkBoldWithDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkBoldWithoutDescription") =
(((parseRules ("MediaWiki","WikiLinkWithoutDescriptionRules")))
<|>
((pDetectChar False '#' >>= withAttribute DecValTok))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkBoldWithoutDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkItalicWithDescription") =
(((parseRules ("MediaWiki","WikiLinkWithDescriptionRules")))
<|>
((pDetectChar False '|' >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","WikiLinkDescriptionItalic"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkItalicWithDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkItalicWithoutDescription") =
(((parseRules ("MediaWiki","WikiLinkWithoutDescriptionRules")))
<|>
((pDetectChar False '#' >>= withAttribute DecValTok))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkItalicWithoutDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkUnderlinedWithDescription") =
(((parseRules ("MediaWiki","WikiLinkWithDescriptionRules")))
<|>
((pDetectChar False '|' >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","WikiLinkDescriptionUnderlined"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkUnderlinedWithDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkUnderlinedWithoutDescription") =
(((parseRules ("MediaWiki","WikiLinkWithoutDescriptionRules")))
<|>
((pDetectChar False '#' >>= withAttribute DecValTok))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkUnderlinedWithoutDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkBoldItalicWithDescription") =
(((parseRules ("MediaWiki","WikiLinkWithDescriptionRules")))
<|>
((pDetectChar False '|' >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","WikiLinkDescriptionBoldItalic"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkBoldItalicWithDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkBoldItalicWithoutDescription") =
(((parseRules ("MediaWiki","WikiLinkWithoutDescriptionRules")))
<|>
((pDetectChar False '#' >>= withAttribute DecValTok))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkBoldItalicWithoutDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkBoldUnderlinedWithDescription") =
(((parseRules ("MediaWiki","WikiLinkWithDescriptionRules")))
<|>
((pDetectChar False '|' >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","WikiLinkDescriptionBoldUnderlined"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkBoldUnderlinedWithDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkBoldUnderlinedWithoutDescription") =
(((parseRules ("MediaWiki","WikiLinkWithoutDescriptionRules")))
<|>
((pDetectChar False '#' >>= withAttribute DecValTok))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkBoldUnderlinedWithoutDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkItalicUnderlinedWithDescription") =
(((parseRules ("MediaWiki","WikiLinkWithDescriptionRules")))
<|>
((pDetectChar False '|' >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","WikiLinkDescriptionItalicUnderlined"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkItalicUnderlinedWithDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkItalicUnderlinedWithoutDescription") =
(((parseRules ("MediaWiki","WikiLinkWithoutDescriptionRules")))
<|>
((pDetectChar False '#' >>= withAttribute DecValTok))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkItalicUnderlinedWithoutDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkBoldItalicUnderlinedWithDescription") =
(((parseRules ("MediaWiki","WikiLinkWithDescriptionRules")))
<|>
((pDetectChar False '|' >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","WikiLinkDescriptionBoldItalicUnderlined"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkBoldItalicUnderlinedWithDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkBoldItalicUnderlinedWithoutDescription") =
(((pDetectChar False '#' >>= withAttribute DecValTok))
<|>
((parseRules ("MediaWiki","WikiLinkWithoutDescriptionRules")))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkBoldItalicUnderlinedWithoutDescription")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","WikiLinkDescriptionRules") =
(((parseRules ("MediaWiki","FindTemplate")))
<|>
((parseRules ("MediaWiki","FindHtmlEntities")))
<|>
((lookAhead (pDetect2Chars False ']' ']') >> (popContext) >> currentContext >>= parseRules))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkDescriptionRules")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkDescription") =
(((parseRules ("MediaWiki","WikiLinkDescriptionRules")))
<|>
((parseRules ("MediaWiki","FindTextDecorations")))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkDescription")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkDescriptionBold") =
(((parseRules ("MediaWiki","WikiLinkDescriptionRules")))
<|>
((pString False "''" >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","BoldItalic"))
<|>
((pRegExpr regex_'3cu_'2a'3e >>= withAttribute KeywordTok) >>~ pushContext ("MediaWiki","BoldUnderlined"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkDescriptionBold")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkDescriptionItalic") =
(((parseRules ("MediaWiki","WikiLinkDescriptionRules")))
<|>
((pString False "'''" >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","ItalicBold"))
<|>
((pRegExpr regex_'3cu_'2a'3e >>= withAttribute KeywordTok) >>~ pushContext ("MediaWiki","ItalicUnderlined"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkDescriptionItalic")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkDescriptionUnderlined") =
(((parseRules ("MediaWiki","WikiLinkDescriptionRules")))
<|>
((pString False "'''" >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","UnderlinedBold"))
<|>
((pString False "''" >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","UnderlinedItalic"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkDescriptionUnderlined")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkDescriptionBoldItalic") =
(((parseRules ("MediaWiki","WikiLinkDescriptionRules")))
<|>
((pRegExpr regex_'3cu_'2a'3e >>= withAttribute KeywordTok) >>~ pushContext ("MediaWiki","BoldItalicUnderlined"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkDescriptionBoldItalic")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkDescriptionBoldUnderlined") =
(((parseRules ("MediaWiki","WikiLinkDescriptionRules")))
<|>
((pString False "''" >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","BoldUnderlinedItalic"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkDescriptionBoldUnderlined")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkDescriptionItalicUnderlined") =
(((parseRules ("MediaWiki","WikiLinkDescriptionRules")))
<|>
((pString False "'''" >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","ItalicUnderlinedBold"))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkDescriptionItalicUnderlined")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","WikiLinkDescriptionBoldItalicUnderlined") =
(((parseRules ("MediaWiki","WikiLinkDescriptionRules")))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","WikiLinkDescriptionBoldItalicUnderlined")) >> pDefault >>= withAttribute NormalTok))
parseRules ("MediaWiki","Template") =
(((pString False "|" >>= withAttribute DecValTok) >>~ pushContext ("MediaWiki","TemplateParameterSlot"))
<|>
((pDetect2Chars False '}' '}' >>= withAttribute DecValTok) >>~ (popContext))
<|>
(currentContext >>= \x -> guard (x == ("MediaWiki","Template")) >> pDefault >>= withAttribute OtherTok))
parseRules ("MediaWiki","TemplateParameterSlot") =
(((lookAhead (pDetect2Chars False '}' '}') >> (popContext) >> currentContext >>= parseRules))
<|>
((pString False "