emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/csharp-mode 4b3d6f8 247/459: More region comment fixes.


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 4b3d6f8 247/459: More region comment fixes.
Date: Sun, 22 Aug 2021 13:59:37 -0400 (EDT)

branch: externals/csharp-mode
commit 4b3d6f82d7773ed52582d0eabf8bd67d7e4c0f86
Author: Tim Van Holder <tim.vanholder@leeloo.anubex.internal>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    More region comment fixes.
    
    Region comments don't need to be separated from the directive by a single 
space - any (non-zero) amount of whitespace is fine.
    Region comments don't need to start with a word.
---
 csharp-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index 1938a05..204d2a9 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -1155,9 +1155,9 @@ Currently handled:
                   (setq done t)))))))))
 
     (goto-char beg)
-    (while (re-search-forward "^\\s *#\\s *\\(region\\|pragma\\) " end t)
-      (when (looking-at "\\w")
-        ;; mark the space separating the directive from the comment
+    (while (re-search-forward "^\\s *#\\s *\\(region\\|pragma\\)\\s " end t)
+      (when (looking-at "\\s *\\S ")
+        ;; mark the whitespace separating the directive from the comment
         ;; text as comment starter to allow correct word movement
         (put-text-property (1- (point)) (point)
                            'syntax-table (string-to-syntax "< b"))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]