File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1358,6 +1358,8 @@ line."
1358
1358
(if (or (looking-at " '\\ ([^\\ ']\\ |\\\\ .\\ )'" )
1359
1359
(looking-at " '\\\\\\ ([^\\ ']\\ |\\\\ .\\ )*'" )
1360
1360
(looking-at " \" \\ ([^\\ \" ]\\ |\\\\ .\\ )*\" " )
1361
+ ; ; QuasiQuotes, with help of propertize buffer and string delimeters
1362
+ (looking-at " \\ s\" \\ S\" *\\ s\" " )
1361
1363
; ; Hierarchical names always start with uppercase
1362
1364
(looking-at
1363
1365
" [[:upper:]]\\ (\\ s_\\ |\\ sw\\ |'\\ )*\\ (\\ .\\ (\\ s_\\ |\\ sw\\ |'\\ )+\\ )*" )
Original file line number Diff line number Diff line change 25
25
(require 'cl-lib )
26
26
(require 'ert )
27
27
(require 'haskell-mode )
28
+ (require 'haskell-font-lock )
28
29
(require 'haskell-indentation )
29
30
30
31
; ;; Code:
@@ -70,6 +71,7 @@ because it helps increase coverage."
70
71
(haskell-indentation-mode 1 )
71
72
(insert source )
72
73
(newline )
74
+ (font-lock-fontify-buffer )
73
75
(goto-char (point-min ))
74
76
(forward-line (1- line))
75
77
(move-to-column column)
@@ -589,5 +591,18 @@ function (Operation 'Init) = do
589
591
"
590
592
((2 0 ) 2 ))
591
593
594
+ (hindent-test " 29a quasiquote single line" "
595
+ test = [randomQQ| This is a quasiquote with the word in |]
596
+
597
+ "
598
+ ((2 0 ) 0 7 ))
599
+
600
+ (hindent-test " 29b quasiquote multiple lines" "
601
+ test = [randomQQ| This is
602
+ a quasiquote
603
+ with the word in |]
604
+
605
+ "
606
+ ((4 0 ) 0 7 ))
592
607
593
608
; ;; haskell-indentation-tests.el ends here
You can’t perform that action at this time.
0 commit comments