branch: externals/csharp-mode commit 4b3d6f82d7773ed52582d0eabf8bd67d7e4c0f86 Author: Tim Van Holder <tim.vanholder@leeloo.anubex.internal> Commit: Jostein Kjønigsen <jost...@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"))))))