Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions language_examples/systemverilog/implication.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module test;

wire a, b;

property p;
@(posedge clk) a |-> b;
endproperty
a: assert property(p);

property p;
@(posedge clk) a |=> b;
endproperty
a: assert property(p);

endmodule
16 changes: 8 additions & 8 deletions syntaxes/systemverilog.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,14 @@
},
"operators": {
"patterns": [
{
"match": "\\b(?:dist|inside|with|intersect|and|or|throughout|within|first_match)\\b|:=|:/|\\|->|\\|=>|->>|\\*>|#-#|#=#|&&&",
"name": "keyword.operator.logical.systemverilog"
},
{
"match": "@|##|#|->|<->",
"name": "keyword.operator.channel.systemverilog"
},
{
"match": "\\+=|-=|/=|\\*=|%=|&=|\\|=|\\^=|>>>=|>>=|<<<=|<<=|<=|=",
"name": "keyword.operator.assignment.systemverilog"
Expand Down Expand Up @@ -909,14 +917,6 @@
{
"match": "<=|<|>=|>|==\\?|!=\\?|===|!==|==|!=",
"name": "keyword.operator.comparison.systemverilog"
},
{
"match": "@|##|#|->|<->",
"name": "keyword.operator.channel.systemverilog"
},
{
"match": "\\b(?:dist|inside|with|intersect|and|or|throughout|within|first_match)\\b|:=|:/|\\|->|\\|=>|->>|\\*>|#-#|#=#|&&&",
"name": "keyword.operator.logical.systemverilog"
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions syntaxes/systemverilog.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ repository:
name: keyword.operator.quantifier.regexp
operators:
patterns:
- match: \b(?:dist|inside|with|intersect|and|or|throughout|within|first_match)\b|:=|:/|\|->|\|=>|->>|\*>|#-#|#=#|&&&
name: keyword.operator.logical.systemverilog
- match: '@|##|#|->|<->'
name: keyword.operator.channel.systemverilog
- match: \+=|-=|/=|\*=|%=|&=|\|=|\^=|>>>=|>>=|<<<=|<<=|<=|=
name: keyword.operator.assignment.systemverilog
# - match: :|\?
Expand All @@ -490,10 +494,6 @@ repository:
name: keyword.operator.bitwise.systemverilog
- match: <=|<|>=|>|==\?|!=\?|===|!==|==|!=
name: keyword.operator.comparison.systemverilog
- match: '@|##|#|->|<->'
name: keyword.operator.channel.systemverilog
- match: \b(?:dist|inside|with|intersect|and|or|throughout|within|first_match)\b|:=|:/|\|->|\|=>|->>|\*>|#-#|#=#|&&&
name: keyword.operator.logical.systemverilog
comments:
patterns:
- begin: /\*
Expand Down
Loading