File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,13 @@ executable found in PATH.")
587
587
(put-text-property (match-beginning 3 ) (1+ (match-end 3 )) 'syntax-table (string-to-syntax " |" )))))
588
588
((equal token-kind 'template-haskell-quasi-quote )
589
589
(put-text-property (match-beginning 2 ) (match-end 2 ) 'syntax-table (string-to-syntax " \" " ))
590
- (put-text-property (match-beginning 4 ) (match-end 4 ) 'syntax-table (string-to-syntax " \" " ))))
590
+ (put-text-property (match-beginning 4 ) (match-end 4 ) 'syntax-table (string-to-syntax " \" " ))
591
+ (save-excursion
592
+ (goto-char (match-beginning 3 ))
593
+ (let ((limit (match-end 3 )))
594
+ (save-match-data
595
+ (while (re-search-forward " \" " limit t )
596
+ (put-text-property (match-beginning 0 ) (match-end 0 ) 'syntax-table (string-to-syntax " ." ))))))))
591
597
(if token-kind
592
598
(goto-char (match-end 0 ))
593
599
(goto-char end)))))))
Original file line number Diff line number Diff line change @@ -656,13 +656,23 @@ test = [randomQQ| This is
656
656
"
657
657
(4 0 2 ))
658
658
659
- (hindent-test " 29c* quasiquote with quotes in it and a string outside" "
659
+ (hindent-test " 29c quasiquote with quotes in it and a string outside" "
660
660
foo = do
661
661
let bar = [text|\" some text\" |]
662
662
button \" Cancel\" $ do
663
663
"
664
664
(4 4 ))
665
665
666
+ (hindent-test " 29d unfinished quasiquote" "
667
+ foo = [text|some
668
+ "
669
+ (2 0 11 ))
670
+
671
+ (hindent-test " 29e an expression quotation" "
672
+ foo = [|forever $ do
673
+ "
674
+ (2 10 ))
675
+
666
676
(hindent-test " 30* parse '[] identifier correctly" "
667
677
instance Callable '[]
668
678
"
You can’t perform that action at this time.
0 commit comments