]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(haskell): Add syntax test
authorDoug Kearns <dougkearns@gmail.com>
Fri, 21 Nov 2025 18:22:37 +0000 (18:22 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 21 Nov 2025 18:22:37 +0000 (18:22 +0000)
Add a test for issue #18776 (allow spaces in backticked operators).

closes: #18783

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/testdir/dumps/haskell_00.dump [new file with mode: 0644]
runtime/syntax/testdir/input/haskell.hs [new file with mode: 0644]

diff --git a/runtime/syntax/testdir/dumps/haskell_00.dump b/runtime/syntax/testdir/dumps/haskell_00.dump
new file mode 100644 (file)
index 0000000..133f52f
--- /dev/null
@@ -0,0 +1,20 @@
+>-+0#0000e05#ffffff0@1| |I|s@1|u|e| |#|1|8|7@1|6| |(|a|l@1|o|w| |s|p|a|c|e|s| |i|n| |b|a|c|k|t|i|c|k|e|d| |o|p|e|r|a|t|o|r|s|)| +0#0000000&@20
+@75
+|m|a|i|n| |=+0#af5f00255&| +0#0000000&|p|r|i|n|t| |(|9+0#e000002&| +0#0000000&|`+0#af5f00255&| |d|i|v| |`| +0#0000000&|4+0#e000002&|)+0#0000000&| @48
+@75
+|~+0#4040ff13&| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+| +0#0000000&@56|1|,|1| @10|A|l@1| 
diff --git a/runtime/syntax/testdir/input/haskell.hs b/runtime/syntax/testdir/input/haskell.hs
new file mode 100644 (file)
index 0000000..c860792
--- /dev/null
@@ -0,0 +1,4 @@
+-- Issue #18776 (allow spaces in backticked operators)
+
+main = print (9 ` div ` 4)
+