Skip to content

Commit 561c359

Browse files
committed
Fix fontification in Emacs27.
Some more breaking cc-mode changes. Completely halts all fontification. Fix it by ignoring it... For now.
1 parent 5bfd3d2 commit 561c359

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csharp-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,8 @@ to work properly with code that includes attributes."
753753
;; Match a char before the string starter to make
754754
;; `c-skip-comments-and-strings' work correctly.
755755
(concat ".\\(" c-string-limit-regexp "\\)")
756-
'((c-font-lock-invalid-string)))
756+
'((when (fboundp 'c-font-lock-invalid-string)
757+
(c-font-lock-invalid-string))))
757758

758759

759760
;; Fontify keyword constants.

0 commit comments

Comments
 (0)