|
9 | 9 | {"include": "#ternary"}, |
10 | 10 | {"include": "#string"}, |
11 | 11 | {"include": "#keyword"}, |
12 | | - {"include": "#io-port"}, |
| 12 | + {"include": "#metadata-ref"}, |
| 13 | + {"include": "#io-ref"}, |
13 | 14 | {"include": "#cell-ref"}, |
14 | | - {"include": "#cell-ref-added"}, |
| 15 | + {"include": "#cell-ref-new"}, |
15 | 16 | {"include": "#memory-cell"}, |
16 | 17 | {"include": "#diff-added"}, |
17 | 18 | {"include": "#diff-removed"} |
|
40 | 41 | "patterns": [{"include": "#string-escape"}] |
41 | 42 | }, |
42 | 43 | "keyword": { |
43 | | - "match": "set|buf|not|and|or|xor|mux|adc|eq|ult|slt|shl|ushr|sshr|xshr|mul|udiv|umod|sdiv_trunc|sdiv_floor|smod_trunc|smod_floor|match|assign|dff|iobuf|target|param|input|output|io|name|debug", |
| 44 | + "match": "source|scope|ident|set|buf|not|and|or|xor|mux|adc|eq|ult|slt|shl|ushr|sshr|xshr|mul|udiv|umod|sdiv_trunc|sdiv_floor|smod_trunc|smod_floor|match|assign|dff|iobuf|target|param|input|output|io|name|debug", |
44 | 45 | "name": "keyword.other.prjunnamed" |
45 | 46 | }, |
46 | | - "io-port": { |
| 47 | + "metadata-ref": { |
| 48 | + "match": "!\\d+", |
| 49 | + "name": "variable.other.prjunnamed" |
| 50 | + }, |
| 51 | + "io-ref": { |
47 | 52 | "begin": "&\"", |
48 | 53 | "end": "(\")(:\\d+)?(\\+\\d+)?", |
49 | | - "name": "entity.name.io-port.prjunnamed", |
| 54 | + "name": "entity.name.io-ref.prjunnamed", |
50 | 55 | "patterns": [{"include": "#string-escape"}] |
51 | 56 | }, |
52 | 57 | "cell-ref": { |
53 | 58 | "match": "%\\d+(:\\d+)?(\\+\\d+)?", |
54 | 59 | "name": "variable.other.prjunnamed" |
55 | 60 | }, |
56 | | - "cell-ref-added": { |
| 61 | + "cell-ref-new": { |
57 | 62 | "match": "%_\\d+(:\\d+)?(\\+\\d+)?", |
58 | 63 | "name": "markup.inserted.prjunnamed" |
59 | 64 | }, |
|
66 | 71 | {"include": "#decimal"}, |
67 | 72 | {"include": "#ternary"}, |
68 | 73 | {"include": "#cell-ref"}, |
69 | | - {"include": "#cell-ref-added"}, |
| 74 | + {"include": "#cell-ref-new"}, |
70 | 75 | {"include": "#memory-keyword"} |
71 | 76 | ] |
72 | 77 | }, |
|
0 commit comments