Skip to content

Commit a4d07fd

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

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
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]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "Catherine <[email protected]>",
77
"license": "BSD-0-Clause",
88
"homepage": "https://github.com/prjunnamed/",
9-
"version": "0.4.2",
9+
"version": "0.4.3",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/prjunnamed/vscode-syntax.git"

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)