Skip to content

Commit 89b49d0

Browse files
committed
Fix highlighting for metadata attached to memories.
1 parent 19d0d49 commit 89b49d0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/memory.uir

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
%2:32 = input "wdata"
44
%3:5 = input "raddr"
55
%4:1 = input "ren"
6-
%5:_ = memory depth=#32 width=#32 {
6+
!123 = source "foo.py" (#0 #0) (#0 #0)
7+
%5:_ = memory depth=#32 width=#32 !123 {
78
init 00000000000000000000000000000000*30
89
write addr=%1:5 data=%2:32 mask=11111111111111111111111111111111 clk=%0
910
%5:32 = read addr=%3:5 clk=%0 en=%4 [rdfirst]

syntaxes/prjunnamed.tmLanguage.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
{"include": "#comment"},
7777
{"include": "#decimal"},
7878
{"include": "#ternary"},
79+
{"include": "#metadata-ref"},
7980
{"include": "#cell-ref"},
8081
{"include": "#cell-ref-new"},
8182
{"include": "#memory-keyword"}

0 commit comments

Comments
 (0)