mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
a nagging inconsistency: capitalization of
HTML vs Html, URL vs Url, HTTP vs Http, current source is 6:1 in favor of the former, so change instances of the latter. R=r CC=go-dev http://go/go-review/1024026
This commit is contained in:
parent
830813f019
commit
ed6eb5b577
13 changed files with 97 additions and 97 deletions
|
|
@ -30,15 +30,15 @@ type snippetStyler struct {
|
|||
}
|
||||
|
||||
|
||||
func (s *snippetStyler) LineTag(line int) (text []uint8, tag printer.HtmlTag) {
|
||||
func (s *snippetStyler) LineTag(line int) (text []uint8, tag printer.HTMLTag) {
|
||||
return; // no LineTag for snippets
|
||||
}
|
||||
|
||||
|
||||
func (s *snippetStyler) Ident(id *ast.Ident) (text []byte, tag printer.HtmlTag) {
|
||||
func (s *snippetStyler) Ident(id *ast.Ident) (text []byte, tag printer.HTMLTag) {
|
||||
text = strings.Bytes(id.Value);
|
||||
if s.highlight == id {
|
||||
tag = printer.HtmlTag{"<span class=highlight>", "</span>"};
|
||||
tag = printer.HTMLTag{"<span class=highlight>", "</span>"};
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue