]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix regex errors in csharp-mode
authorTheodor Thornhill <theo@thornhill.no>
Thu, 24 Nov 2022 22:12:40 +0000 (23:12 +0100)
committerMattias EngdegÄrd <mattiase@acm.org>
Fri, 25 Nov 2022 09:54:54 +0000 (10:54 +0100)
* lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax):
Repetition errors in regex.

(csharp-compilation-re-xbuild-warning): Make regex match regex for
xbuild-error.

lisp/progmodes/csharp-mode.el

index af8a4a81061c0ea64dd86b1ff63e8f2362106b6d..af3a4d86da2e90e714ca1ef28e2c647770841d41 100644 (file)
@@ -482,7 +482,7 @@ compilation and evaluation time conflicts."
      (save-excursion
        ;; 'new' should be part of the line
        (goto-char (c-point 'iopl))
-       (looking-at ".*\\s *new\\s *.*"))
+       (looking-at ".*new.*"))
      ;; Line should not already be terminated
      (save-excursion
        (goto-char (c-point 'eopl))
@@ -614,7 +614,7 @@ compilation and evaluation time conflicts."
    "\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?"
    ;; handle weird devenv output format with 4 numbers, not 2 by having optional
    ;; extra capture-groups.
-   "\\(?:,\\([0-9]+\\)\\)?*): "
+   "\\(?:,\\([0-9]+\\)\\)*): "
    "warning [[:alnum:]]+: .+$")
   "Regexp to match compilation warning from xbuild.")