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

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

[elpa] externals/cobol-mode 5290d35 8/8: * cobol-mode.el: Fix misreprese


From: Stefan Monnier
Subject: [elpa] externals/cobol-mode 5290d35 8/8: * cobol-mode.el: Fix misrepresenting variable
Date: Sat, 28 Nov 2020 00:16:41 -0500 (EST)

branch: externals/cobol-mode
commit 5290d358747f48f82ba09e610c4c0ff3f7cb4102
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * cobol-mode.el: Fix misrepresenting variable
    
    (cobol--fixed-comment-indicators-re):
    Rename to cobol--fixed-comment-indicators, since it is not a regexp.
    (cobol--fixed-form-comment-re, cobol--non-fixed-comment-indicators-re):
    Use new name.
---
 cobol-mode.el | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/cobol-mode.el b/cobol-mode.el
index 226d00c..f7dcab8 100644
--- a/cobol-mode.el
+++ b/cobol-mode.el
@@ -1958,15 +1958,14 @@ The next key typed is executed unless it is SPC."
   "^.\\{6\\}"
   "Regexp matching a complete sequence area.")
 
-(defconst cobol--fixed-comment-indicators-re
-  ;; FIXME: Confusing name and docstring: it's not a regexp!
+(defconst cobol--fixed-comment-indicators
   "*/"
-  "Regexp containing COBOL fixed-form comment indicators.")
+  "String containing COBOL fixed-form comment indicator characters.")
 
 (defconst cobol--fixed-form-comment-re
   (concat cobol--complete-sequence-area-re
           "\\(["
-          cobol--fixed-comment-indicators-re
+          cobol--fixed-comment-indicators
           "]\\)")
   "Regexp matching a fixed-form source comment.")
 
@@ -1976,7 +1975,7 @@ The next key typed is executed unless it is SPC."
   "Regexp matching a continuation or debugging line indicator.")
 
 (defconst cobol--non-fixed-comment-indicators-re
-  (concat "[^" cobol--fixed-comment-indicators-re "]")
+  (concat "[^" cobol--fixed-comment-indicators "]")
   "Regexp matching non-fixed-form-comment-indicator characters.")
 
 (defconst cobol--fixed-non-comment-sequence-area-re



reply via email to

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