branch: elpa/tuareg
commit 8c8d217bf1f4227b76da0c7f85371c38c091392d
Author: Mattias EngdegÄrd <matti...@acm.org>
Commit: Mattias EngdegÄrd <matti...@acm.org>

    Simpler matching of ending line and character in compiler message
    
    If there is no `-`, there won't be any number following.
---
 tuareg.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tuareg.el b/tuareg.el
index d6653d6..18a5044 100644
--- a/tuareg.el
+++ b/tuareg.el
@@ -3158,12 +3158,10 @@ Short cuts for interactions with the REPL:
        (backref 2)
        ", line" (? "s") " "
        (group (+ (in "0-9")))               ; 4: LINE-START
-       (? "-")
-       (? (group (+ (in "0-9"))))           ; 5; LINE-END
+       (? "-" (group (+ (in "0-9"))))       ; 5; LINE-END
        (? ", character" (? "s") " "
           (group (+ (in "0-9")))            ; 6: COL-START
-          (? "-")
-          (? (group (+ (in "0-9")))))       ; 7: COL-END
+          (? "-" (group (+ (in "0-9")))))   ; 7: COL-END
        ":")
       (? "\n"
          (* (in "\t "))

Reply via email to