golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/highlight/issue60435.txt (about)

     1  This is a regression test for issue 60435:
     2  Highlighting "net/http" shouldn't have any effect
     3  on an import path that contains it as a substring,
     4  such as httptest.
     5  
     6  -- highlights.go --
     7  package highlights
     8  
     9  import (
    10  	"net/http"          //@loc(httpImp, `"net/http"`)
    11  	"net/http/httptest" //@loc(httptestImp, `"net/http/httptest"`)
    12  )
    13  
    14  var _ = httptest.NewRequest
    15  var _ = http.NewRequest //@loc(here, "http"), highlight(here, here, httpImp)