Skip to content

Commit cabc695

Browse files
authored
Add operators 'has' & 'has-not', and shorten operators-word regex (#201)
1 parent 28ccc90 commit cabc695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntaxes/nushell.tmLanguage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
"name": "keyword.control.nushell"
208208
},
209209
"operators-word": {
210-
"match": "(?<= |\\()(?:mod|in|not-in|not|and|or|xor|bit-or|bit-and|bit-xor|bit-shl|bit-shr|starts-with|ends-with|like|not-like)(?= |\\)|$)",
210+
"match": "(?<= |\\()(?:mod|in|not-(?:in|like|has)|not|and|or|xor|bit-(?:or|and|xor|shl|shr)|starts-with|ends-with|like|has)(?= |\\)|$)",
211211
"name": "keyword.control.nushell"
212212
},
213213
"operators-symbols": {

0 commit comments

Comments
 (0)