Skip to content

Commit c43c223

Browse files
committed
[sil-mode] Change [attribute] highlighting to use a non-greedy + so that [take] [initialization] does not hightlight the ][ in between the two.
1 parent ff967c7 commit c43c223

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
@@ -51,7 +51,7 @@
5151
font-lock-keyword-face)
5252

5353
;; Highlight attributes written in [...].
54-
'("\\[\\(.+\\)\\]" 1 font-lock-keyword-face)
54+
'("\\[\\(.+?\\)\\]" 1 font-lock-keyword-face)
5555

5656
;; SIL Instructions - Allocation/Deallocation.
5757
`(,(regexp-opt '("alloc_stack" "alloc_ref" "alloc_ref_dynamic" "alloc_box"

0 commit comments

Comments
 (0)