File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ that should be commented under LaTeX-style literate scripts."
326
326
(" \\ s_\\ {3,\\ }" (0 (cond ((numberp (nth 4 (syntax-ppss )))
327
327
; ; There are no such instances inside nestable comments
328
328
nil )
329
- ((string-match " \\ `-*\\' " (match-string 0 ))
329
+ ((string-match " \\ `-*|? \\' " (match-string 0 ))
330
330
; ; Sequence of hyphens. Do nothing in
331
331
; ; case of things like `{---' .
332
332
nil )
@@ -376,7 +376,7 @@ that should be commented under LaTeX-style literate scripts."
376
376
((and purescript-font-lock-docstrings
377
377
(save-excursion
378
378
(goto-char (nth 8 state))
379
- (looking-at " \\ (-- \\ |{-\\ )[ \\ t]*[|^]" )))
379
+ (looking-at " \\ (--\\ |{-\\ )[ \\ t]*[|^]" )))
380
380
'font-lock-doc-face )
381
381
(t 'font-lock-comment-face )))
382
382
Original file line number Diff line number Diff line change @@ -101,10 +101,11 @@ this = \"still a string\"
101
101
102
102
(ert-deftest docs-bar-comment-different-spacings ()
103
103
(purescript-test-ranges
104
- " -- | Docs comment 1 space
104
+ " --| Docs comment 0 space
105
+ -- | Docs comment 1 space
105
106
-- | Docs comment many spaces
106
107
"
107
- '((1 57 font-lock-doc-face ))))
108
+ '((1 85 font-lock-doc-face ))))
108
109
109
110
(ert-deftest docs-bar-comment-continuation ()
110
111
" Acc. to
You can’t perform that action at this time.
0 commit comments