Commit: runtime(haskell): Add syntax test

2 views
Skip to first unread message

Christian Brabandt

unread,
Nov 21, 2025, 1:30:39 PM (yesterday) Nov 21
to vim...@googlegroups.com
runtime(haskell): Add syntax test

Commit: https://github.com/vim/vim/commit/ea14bb7df9313529981e0584cb199f0274a2cdea
Author: Doug Kearns <dougk...@gmail.com>
Date: Fri Nov 21 18:22:37 2025 +0000

runtime(haskell): Add syntax test

Add a test for issue https://github.com/vim/vim/issues/18776 (allow spaces in backticked operators).

closes: #18783

Signed-off-by: Doug Kearns <dougk...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/testdir/dumps/haskell_00.dump b/runtime/syntax/testdir/dumps/haskell_00.dump
new file mode 100644
index 000000000..133f52f50
--- /dev/null
+++ b/runtime/syntax/testdir/dumps/haskell_00.dump
@@ -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
index 000000000..c8607920e
--- /dev/null
+++ b/runtime/syntax/testdir/input/haskell.hs
@@ -0,0 +1,4 @@
+-- Issue #18776 (allow spaces in backticked operators)
+
+main = print (9 ` div ` 4)
+
Reply all
Reply to author
Forward
0 new messages