summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lsp/go/main.go18
-rw-r--r--test/lsp/js/main.js13
-rw-r--r--test/lsp/tex/thing.tex7
3 files changed, 38 insertions, 0 deletions
diff --git a/test/lsp/go/main.go b/test/lsp/go/main.go
index e69de29..d60bcd1 100644
--- a/test/lsp/go/main.go
+++ b/test/lsp/go/main.go
@@ -0,0 +1,18 @@
+package main;
+import (
+ "fmt"
+)
+
+type X struct {
+ y int
+}
+
+func main() {
+ _, err := fmt.Println("hello world");
+ if err != nil {
+ return;
+ }
+ var a X
+ println(a.y);
+
+}
diff --git a/test/lsp/js/main.js b/test/lsp/js/main.js
new file mode 100644
index 0000000..ccf94ed
--- /dev/null
+++ b/test/lsp/js/main.js
@@ -0,0 +1,13 @@
+/** this is my favorit funciton */
+function funciton() {
+ var xYz = 123;
+ xYz += 555;
+ console.log(xYz);
+}
+
+function main() {
+ funciton();
+}
+
+main();
+funciton();
diff --git a/test/lsp/tex/thing.tex b/test/lsp/tex/thing.tex
new file mode 100644
index 0000000..337261e
--- /dev/null
+++ b/test/lsp/tex/thing.tex
@@ -0,0 +1,7 @@
+\documentclass{article}
+\newcommand{\Sin}[1]{\sin\left(#1\right)}
+\begin{document}
+$$x^2 + \pi = 5\pi - \sin\sqrt{100+12}$$
+$$\Sin{123}$$
+
+\end{document}