File: issue60435.txt

package info (click to toggle)
golang-golang-x-tools 1%3A0.25.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,724 kB
  • sloc: javascript: 2,027; asm: 1,645; sh: 166; yacc: 155; makefile: 49; ansic: 8
file content (15 lines) | stat: -rw-r--r-- 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
This is a regression test for issue 60435:
Highlighting "net/http" shouldn't have any effect
on an import path that contains it as a substring,
such as httptest.

-- highlights.go --
package highlights

import (
	"net/http"          //@hiloc(httpImp, `"net/http"`, text)
	"net/http/httptest" //@hiloc(httptestImp, `"net/http/httptest"`, text)
)

var _ = httptest.NewRequest
var _ = http.NewRequest //@hiloc(here, "http", text), highlight(here, here, httpImp)