branch: externals/csharp-mode
commit 561c359532ded63ebc8dc08ff64c1db2ffd672e4
Author: Jostein Kjønigsen <jost...@kjonigsen.net>
Commit: Jostein Kjønigsen <jost...@kjonigsen.net>

    Fix fontification in Emacs27.
    
    Some more breaking cc-mode changes. Completely halts all fontification.
    
    Fix it by ignoring it... For now.
---
 csharp-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index e07199a..d1fb8b2 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -753,7 +753,8 @@ to work properly with code that includes attributes."
              ;; Match a char before the string starter to make
              ;; `c-skip-comments-and-strings' work correctly.
              (concat ".\\(" c-string-limit-regexp "\\)")
-             '((c-font-lock-invalid-string)))
+             '((when (fboundp 'c-font-lock-invalid-string)
+                 (c-font-lock-invalid-string))))
 
 
            ;; Fontify keyword constants.

Reply via email to