From 45d69107725a02cf6d912a571b771da3ef5abfbf Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 4 Aug 2023 19:35:48 -0400 Subject: textDocument/documentLink parsing --- test/lsp/go/main.go | 1 + test/lsp/rust/.gitignore | 1 + test/lsp/rust/Cargo.lock | 7 +++++++ test/lsp/rust/Cargo.toml | 8 ++++++++ test/lsp/rust/src/main.rs | 3 +++ test/test.html | 6 ++++++ 6 files changed, 26 insertions(+) create mode 100644 test/lsp/rust/.gitignore create mode 100644 test/lsp/rust/Cargo.lock create mode 100644 test/lsp/rust/Cargo.toml create mode 100644 test/lsp/rust/src/main.rs create mode 100644 test/test.html (limited to 'test') diff --git a/test/lsp/go/main.go b/test/lsp/go/main.go index d60bcd1..1cf4073 100644 --- a/test/lsp/go/main.go +++ b/test/lsp/go/main.go @@ -7,6 +7,7 @@ type X struct { y int } +/// https://example.com func main() { _, err := fmt.Println("hello world"); if err != nil { diff --git a/test/lsp/rust/.gitignore b/test/lsp/rust/.gitignore new file mode 100644 index 0000000..eb5a316 --- /dev/null +++ b/test/lsp/rust/.gitignore @@ -0,0 +1 @@ +target diff --git a/test/lsp/rust/Cargo.lock b/test/lsp/rust/Cargo.lock new file mode 100644 index 0000000..b21cc6a --- /dev/null +++ b/test/lsp/rust/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "rust" +version = "0.1.0" diff --git a/test/lsp/rust/Cargo.toml b/test/lsp/rust/Cargo.toml new file mode 100644 index 0000000..1ec6963 --- /dev/null +++ b/test/lsp/rust/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "rust" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/test/lsp/rust/src/main.rs b/test/lsp/rust/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/test/lsp/rust/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/test/test.html b/test/test.html new file mode 100644 index 0000000..7677c8f --- /dev/null +++ b/test/test.html @@ -0,0 +1,6 @@ + + + +example + + -- cgit v1.2.3