Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / simple / testdata / src / regexp-raw / regexp-raw.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/regexp-raw/regexp-raw.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/regexp-raw/regexp-raw.go
new file mode 100644 (file)
index 0000000..87fcca6
--- /dev/null
@@ -0,0 +1,19 @@
+package pkg
+
+import "regexp"
+
+func fn2() string { return "" }
+
+func fn() {
+       x := "abc"
+       const y = "abc"
+       regexp.MustCompile(`\\.`)
+       regexp.MustCompile("\\.") // want `should use raw string.+\.MustCompile`
+       regexp.Compile("\\.")     // want `should use raw string.+\.Compile`
+       regexp.Compile("\\.`")
+       regexp.MustCompile("(?m:^lease (.+?) {\n((?s).+?)\\n}\n)")
+       regexp.MustCompile("\\*/[ \t\n\r\f\v]*;")
+       regexp.MustCompile(fn2())
+       regexp.MustCompile(x)
+       regexp.MustCompile(y)
+}