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 '['.
This commit is contained in:
Theodor Thornhill 2023-04-28 14:00:35 +02:00
parent 7e136c51f6
commit 1f2214dabd

View file

@ -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) ?\])