mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-31 22:32:45 +00:00
Start work on porting hints kitten to Go
This commit is contained in:
parent
bcd3802d3e
commit
09ceb3c0be
12 changed files with 523 additions and 12 deletions
|
|
@ -80,7 +80,7 @@ func replace_all_rst_roles(str string, repl func(rst_format_match) string) strin
|
|||
m.role = groupdict["role"].Text
|
||||
return repl(m)
|
||||
}
|
||||
return utils.ReplaceAll(":(?P<role>[a-z]+):(?:(?:`(?P<payload>[^`]+)`)|(?:'(?P<payload>[^']+)'))", str, rf)
|
||||
return utils.ReplaceAll(utils.MustCompile(":(?P<role>[a-z]+):(?:(?:`(?P<payload>[^`]+)`)|(?:'(?P<payload>[^']+)'))"), str, rf)
|
||||
}
|
||||
|
||||
func (self *Context) hyperlink_for_url(url string, text string) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue