Skip to content

Commit 141817c

Browse files
committed
[sil-mode] Fix highlighting of end_borrow so that it supports highlighting when a borrowed register has more than 1 alphanum in its register id.
1 parent d07ba91 commit 141817c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/sil-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
;; SIL Instructions - Borrowing
7676
`(,(regexp-opt '("load_borrow" "begin_borrow" "store_borrow" "end_borrow_argument") 'words) . font-lock-keyword-face)
77-
'("\\(end_borrow\\) %[[:alnum:]] \\(from\\)" (1 font-lock-keyword-face) (2 font-lock-keyword-face))
77+
'("\\(end_borrow\\) %[[:alnum:]]+ \\(from\\)" (1 font-lock-keyword-face) (2 font-lock-keyword-face))
7878

7979
;; SIL Instructions - ownership
8080
`(,(regexp-opt '("unchecked_ownership_conversion") 'words) . font-lock-keyword-face)

0 commit comments

Comments
 (0)