mirror of
https://github.com/cheat/cheat.git
synced 2025-09-10 05:52:53 +02:00
chore(deps): update dependencies
This commit is contained in:
12
vendor/github.com/alecthomas/chroma/lexers/r/rst.go
generated
vendored
12
vendor/github.com/alecthomas/chroma/lexers/r/rst.go
generated
vendored
@ -8,14 +8,18 @@ import (
|
||||
)
|
||||
|
||||
// Restructuredtext lexer.
|
||||
var Restructuredtext = internal.Register(MustNewLexer(
|
||||
var Restructuredtext = internal.Register(MustNewLazyLexer(
|
||||
&Config{
|
||||
Name: "reStructuredText",
|
||||
Aliases: []string{"rst", "rest", "restructuredtext"},
|
||||
Filenames: []string{"*.rst", "*.rest"},
|
||||
MimeTypes: []string{"text/x-rst", "text/prs.fallenstein.rst"},
|
||||
},
|
||||
Rules{
|
||||
restructuredtextRules,
|
||||
))
|
||||
|
||||
func restructuredtextRules() Rules {
|
||||
return Rules{
|
||||
"root": {
|
||||
{"^(=+|-+|`+|:+|\\.+|\\'+|\"+|~+|\\^+|_+|\\*+|\\++|#+)([ \\t]*\\n)(.+)(\\n)(\\1)(\\n)", ByGroups(GenericHeading, Text, GenericHeading, Text, GenericHeading, Text), nil},
|
||||
{"^(\\S.*)(\\n)(={3,}|-{3,}|`{3,}|:{3,}|\\.{3,}|\\'{3,}|\"{3,}|~{3,}|\\^{3,}|_{3,}|\\*{3,}|\\+{3,}|#{3,})(\\n)", ByGroups(GenericHeading, Text, GenericHeading, Text), nil},
|
||||
@ -56,8 +60,8 @@ var Restructuredtext = internal.Register(MustNewLexer(
|
||||
{"``((?=$)|(?=[-/:.,; \\n\\x00\\\u2010\\\u2011\\\u2012\\\u2013\\\u2014\\\u00a0\\'\\\"\\)\\]\\}\\>\\\u2019\\\u201d\\\u00bb\\!\\?]))", LiteralString, Pop(1)},
|
||||
{"`", LiteralString, nil},
|
||||
},
|
||||
},
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
func rstCodeBlock(groups []string, lexer Lexer) Iterator {
|
||||
iterators := []Iterator{}
|
||||
|
Reference in New Issue
Block a user