File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ that should be commented under LaTeX-style literate scripts."
372
372
; ; QuasiQuotes opens only when outside of a string or a comment
373
373
; ; and closes only when inside a quasiquote.
374
374
; ;
375
- ; ; (syntax-ppss) returns list with two imteresting elements:
375
+ ; ; (syntax-ppss) returns list with two interesting elements:
376
376
; ; nth 3. non-nil if inside a string. (it is the character that will
377
377
; ; terminate the string, or t if the string should be terminated
378
378
; ; by a generic string delimiter.)
@@ -382,7 +382,7 @@ that should be commented under LaTeX-style literate scripts."
382
382
; ; Note also that we need to do in in a single pass, hence a regex
383
383
; ; that covers both the opening and the ending of a quasiquote.
384
384
385
- (" \\ (\\ [[[:alnum:]]+\\ )?\\ (|\\ )\\ (?: ]\\ )?"
385
+ (" \\ (\\ [[[:alnum:]]+\\ )?\\ (|\\ )\\ (]\\ )?"
386
386
(2 (save-excursion
387
387
(goto-char (match-beginning 0 ))
388
388
(if (eq ?\[ (char-after ))
@@ -391,10 +391,12 @@ that should be commented under LaTeX-style literate scripts."
391
391
(nth 4 (syntax-ppss ))
392
392
(member (match-string 1 )
393
393
'(" [e" " [t" " [d" " [p" )))
394
- " | " )
394
+ " \" " )
395
395
; ; closing case
396
- (when (eq t (nth 3 (syntax-ppss )))
397
- " |" )))))
396
+ (when (and (eq ?| (nth 3 (syntax-ppss )))
397
+ (equal " ]" (match-string 3 ))
398
+ )
399
+ " \" " )))))
398
400
))
399
401
400
402
(defconst haskell-bird-syntactic-keywords
You can’t perform that action at this time.
0 commit comments