summaryrefslogtreecommitdiff
path: root/test/cli/visualize/testdata/shorten-names.txt
diff options
context:
space:
mode:
authorPaul Emmerich <tandanu@deadlybossmods.com>2024-02-01 00:11:12 +0100
committerPaul Emmerich <tandanu@deadlybossmods.com>2024-02-01 00:13:49 +0100
commit05172fd47c2b41240a0cccbe9511c41c9918a0d2 (patch)
treebb56430effeb18e5ac01059214269400de9f08fc /test/cli/visualize/testdata/shorten-names.txt
parent9185dfad1286942b4914657e4c0e9ad28cb2aaa8 (diff)
downloadlua-language-server-05172fd47c2b41240a0cccbe9511c41c9918a0d2.zip
Add --visualize command that outputs the AST of a given file as graphviz
Diffstat (limited to 'test/cli/visualize/testdata/shorten-names.txt')
-rw-r--r--test/cli/visualize/testdata/shorten-names.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/cli/visualize/testdata/shorten-names.txt b/test/cli/visualize/testdata/shorten-names.txt
new file mode 100644
index 00000000..90aa7f0e
--- /dev/null
+++ b/test/cli/visualize/testdata/shorten-names.txt
@@ -0,0 +1,18 @@
+s = "very long string that is very long and would be annoying if it was fully included in the output"
+s = "string\nwith\n\new\nlines"
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+x = x + 1
+-- more than 15 lines should be shortened for tooltip in main
+x = x + 1
+x = x + 1 \ No newline at end of file