From: Theodor Thornhill Date: Thu, 24 Nov 2022 22:12:40 +0000 (+0100) Subject: Fix regex errors in csharp-mode X-Git-Tag: emacs-29.0.90~1511 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8910447308fa97eaa224b76629bd37b706f62fe1;p=emacs.git Fix regex errors in csharp-mode * 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. --- diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el index af8a4a81061..af3a4d86da2 100644 --- a/lisp/progmodes/csharp-mode.el +++ b/lisp/progmodes/csharp-mode.el @@ -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.")