]> git.eshelyaron.com Git - emacs.git/commitdiff
Skip over whitespace in annotation-top-cont check (bug#63141)
authorTheodor Thornhill <theo@thornhill.no>
Fri, 28 Apr 2023 12:00:35 +0000 (14:00 +0200)
committerTheodor Thornhill <theo@thornhill.no>
Fri, 28 Apr 2023 12:00:57 +0000 (14:00 +0200)
* 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

index 47cd13e7fdbd6492f5850ec2362fa9f9165f1944..4f7cbc3d51d5a0160f2cfdf678952c31248b5b53 100644 (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) ?\])