Skip to content

Commit 2eec63c

Browse files
racket-repl-mode: Default font-lock-keywords-only to true; fixes #751
This means that font-lock will no longer highlight strings or comments in REPL buffers when used by classic racket-mode. The advantage: It won't MIS-highlight them due to stray string or comment delimiters among the various kinds of REPL output.
1 parent e20a544 commit 2eec63c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

racket-hash-lang.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ rhombus\"."
853853
;; font-lock
854854
(setq-local font-lock-keywords
855855
(with-current-buffer edit-buffer font-lock-keywords))
856+
(setq-local font-lock-keywords-only t) ;#751
856857
(setq-local racket--repl-fontify-region-function
857858
(with-current-buffer edit-buffer font-lock-fontify-region-function))
858859
(font-lock-flush)

0 commit comments

Comments
 (0)