Skip to content

Commit c72ddff

Browse files
committed
Change name of relational operators
Operators <=, >=, <, and > will now be recognized with name 'keyword.operator.relational.octo'.
1 parent 789bf2c commit c72ddff

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Octo.YAML-tmLanguage

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ patterns:
2424

2525
- comment: Comparison operators
2626
name: keyword.operator.comparison.octo
27-
match: (?<=^|\s)(?:==|!=|<=|>=|<|>)(?=$|\s)
27+
match: (?<=^|\s)(?:==|!=)(?=$|\s)
28+
29+
- comment: Relational operators
30+
name: keyword.operator.relational.octo
31+
match: (?<=^|\s)(?:<=|>=|<|>)(?=$|\s)
2832

2933
- comment: Control flow keywords
3034
name: keyword.control.octo

Octo.tmLanguage

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,18 @@
4646
<key>comment</key>
4747
<string>Comparison operators</string>
4848
<key>match</key>
49-
<string>(?&lt;=^|\s)(?:==|!=|&lt;=|&gt;=|&lt;|&gt;)(?=$|\s)</string>
49+
<string>(?&lt;=^|\s)(?:==|!=)(?=$|\s)</string>
5050
<key>name</key>
5151
<string>keyword.operator.comparison.octo</string>
5252
</dict>
53+
<dict>
54+
<key>comment</key>
55+
<string>Relational operators</string>
56+
<key>match</key>
57+
<string>(?&lt;=^|\s)(?:&lt;=|&gt;=|&lt;|&gt;)(?=$|\s)</string>
58+
<key>name</key>
59+
<string>keyword.operator.relational.octo</string>
60+
</dict>
5361
<dict>
5462
<key>comment</key>
5563
<string>Control flow keywords</string>

0 commit comments

Comments
 (0)