branch: externals/csharp-mode commit 461cd870535913646cab77f136d420bf2d71b347 Author: Jostein Kjønigsen <jost...@kjonigsen.net> Commit: Jostein Kjønigsen <jost...@kjonigsen.net>
Fix compilation error on Emacs 26. This solves issue https://github.com/josteink/csharp-mode/issues/127. --- csharp-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/csharp-mode.el b/csharp-mode.el index 7fd4a50..f5649c4 100644 --- a/csharp-mode.el +++ b/csharp-mode.el @@ -981,7 +981,10 @@ to work properly with code that includes attributes." 'c-decl-id-start) (c-forward-syntactic-ws)) (save-match-data - (c-font-lock-declarators limit t nil)) + (condition-case nil + (c-font-lock-declarators limit t nil) + (wrong-number-of-arguments + (c-font-lock-declarators limit t nil nil)))) (goto-char (match-end 0)) ) )))