File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 29
29
(let ((break nil ))
30
30
(while (and (not break)
31
31
(search-backward-regexp " [[({]" beg t 1 ))
32
- (unless (eq ( get-text-property ( point ) 'face ) 'font-lock-string-face )
32
+ (unless (elt ( syntax-ppss ) 3 )
33
33
(let ((orig (point )))
34
34
(haskell-collapse-sexp)
35
35
(goto-char orig)
Original file line number Diff line number Diff line change @@ -258,8 +258,7 @@ then point does not move if already at the start of a declaration."
258
258
; ; here seems to be the only addition to make this
259
259
; ; module support LaTeX-style literate scripts.
260
260
(if (and (looking-at start-decl-re)
261
- (not (eq (get-text-property (point ) 'face )
262
- 'font-lock-comment-face )))
261
+ (not (elt (syntax-ppss ) 4 )))
263
262
(match-beginning 1 )))))
264
263
(if (and start
265
264
; ; This complicated boolean determines whether we
Original file line number Diff line number Diff line change @@ -236,9 +236,7 @@ Regexp match data 0 points to the chars."
236
236
sym-data)
237
237
(if (or (memq (char-syntax (or (char-before start) ?\ )) syntaxes)
238
238
(memq (char-syntax (or (char-after end) ?\ )) syntaxes)
239
- (memq (get-text-property start 'face )
240
- '(font-lock-doc-face font-lock-string-face
241
- font-lock-comment-face ))
239
+ (or (elt (syntax-ppss ) 3 ) (elt (syntax-ppss ) 4 ))
242
240
(and (consp (setq sym-data (cdr (assoc (match-string 0 ) alist))))
243
241
(let ((pred (cadr sym-data)))
244
242
(setq sym-data (car sym-data))
You can’t perform that action at this time.
0 commit comments