diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el index 47cd13e7fdb..4f7cbc3d51d 100644 --- a/lisp/progmodes/csharp-mode.el +++ b/lisp/progmodes/csharp-mode.el @@ -468,7 +468,10 @@ compilation and evaluation time conflicts." (save-excursion (goto-char (c-point 'iopl)) (and - (eq (char-after) ?\[) + (eq (save-excursion + (skip-chars-forward " \t\n") + (char-after)) + ?\[) (save-excursion (c-go-list-forward) (and (eq (char-before) ?\])