From 1f2214dabd012cfa730e60a88d73aded53a2f53b Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Fri, 28 Apr 2023 14:00:35 +0200 Subject: [PATCH] Skip over whitespace in annotation-top-cont check (bug#63141) * lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax): Make sure we skip over whitespace when looking for the next '['. --- lisp/progmodes/csharp-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) ?\]) -- 2.39.2