branch: externals/rec-mode
commit b389387a98fa9a1f42ba7844f694fc1035b4bf76
Author: Antoine Kalmbach <[email protected]>
Commit: Antoine Kalmbach <[email protected]>

    Escape plus sign in regexp
    
    * rec-mode.el (rec-beginning-of-field-pos): escape the plus sign
    (kudos to relint, http://elpa.gnu.org/packages/relint.html)
---
 rec-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rec-mode.el b/rec-mode.el
index 7e512f7..0decb99 100644
--- a/rec-mode.el
+++ b/rec-mode.el
@@ -521,7 +521,7 @@ If no such field exists in RECORD then nil is returned."
       (while
           (cond
            ((and (not (= (line-beginning-position) 1))
-                 (or (looking-at "+")
+                 (or (looking-at "\\+")
                      (looking-back "\\\\\n" 2)))
             (forward-line -1)
             t) ;;Continue

Reply via email to