File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 81
81
(defun racket-syntax-propertize-extend-region (beg end )
82
82
" Value for hook `syntax-propertize-extend-region-functions' .
83
83
84
- Expects to be called after `syntax-propertize-wholelines' ,
85
- adjusting that result to start one line earlier. Ensures
86
- propertization of prefix syntax at BOL; see issue #734."
87
- (let ((inhibit-field-text-motion t ))
88
- (let ((new-beg (line-beginning-position 0 )))
89
- (unless (eql new-beg beg)
90
- (cons new-beg end)))))
84
+ Ensure propertization of # prefix syntax at BOL. Although I don't
85
+ understand exactly why, `syntax-propertize-wholelines' is
86
+ insufficient. See issue #734."
87
+ (when (and (eq ?# (char-after beg))
88
+ (< (point-min ) beg))
89
+ (cons (1- beg) end)))
91
90
92
91
(defun racket-syntax-propertize (start end )
93
92
" Value for variable `syntax-propertize-function' ."
You can’t perform that action at this time.
0 commit comments