Skip to content

Commit 0e62ee5

Browse files
cdce8pdncrews
authored andcommitted
Add patterns for logical and comparison operators
1 parent cb13d23 commit 0e62ee5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

language/syntaxes/expressions.tmGrammar.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@
105105
{
106106
"include": "#string"
107107
},
108+
{
109+
"include": "#op-comparison"
110+
},
111+
{
112+
"include": "#op-logical"
113+
},
108114
{
109115
"include": "#number"
110116
},
@@ -141,6 +147,14 @@
141147
"begin": "'",
142148
"end": "'"
143149
},
150+
"op-comparison": {
151+
"name": "keyword.operator.comparison.github-actions-expression",
152+
"match": "(==|!=)"
153+
},
154+
"op-logical": {
155+
"name": "keyword.operator.logical.github-actions-expression",
156+
"match": "(&&|\\|\\|)"
157+
},
144158
"number": {
145159
"name": "constant.numeric.github-actions-expression",
146160
"match": "\\b[0-9]+(?:.[0-9]+)?\\b"

0 commit comments

Comments
 (0)