Skip to content

Commit 073524d

Browse files
committed
minor fix for go to labels
1 parent 4f286fd commit 073524d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

j-mode.el

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@
8080
"try." "except." "catch." "catcht." "catchd."
8181
"while." "whilst."
8282
"for.")))
83-
(seq (or "for" "goto" "label")
84-
(regexp "_[a-zA-Z]+\\."))))
83+
(seq (or "for" "label") "_"
84+
(+ (any "a-zA-Z"))
85+
".")))
8586
(seq bol ":" eol)
86-
(seq (regexp "[_a-zA-Z0-9]+") (? "'")
87+
(seq (+ (any "_a-zA-Z0-9")) (? "'")
8788
(* "\s") "=" (or "." ":") (* "\s")
8889
(or "{{"
8990
(seq (regexp
@@ -102,7 +103,8 @@
102103
"else." "elseif."
103104
"case." "fcase."
104105
"catch." "catcht." "catchd."
105-
"except.")))))))
106+
"except."
107+
"label")))))))
106108

107109
(defun j-thing-outside-string (thing-regexp)
108110
"Look for REGEXP from `point' til `point-at-eol' outside strings and

0 commit comments

Comments
 (0)