Highlight 'not in' as keyword (#11)
This commit is contained in:
parent
f5d7bda543
commit
c3b82ff916
|
@ -1,6 +1,6 @@
|
|||
; Reserved keywords
|
||||
|
||||
["when" "and" "or" "not" "in" "fn" "do" "end" "catch" "rescue" "after" "else"] @keyword
|
||||
["when" "and" "or" "not" "in" "not in" "fn" "do" "end" "catch" "rescue" "after" "else"] @keyword
|
||||
|
||||
; Operators
|
||||
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
a in b
|
||||
# <- variable
|
||||
# ^ keyword
|
||||
# ^ variable
|
||||
|
||||
a not in b
|
||||
# <- variable
|
||||
# ^ keyword
|
||||
# ^ keyword
|
||||
# ^ variable
|
||||
|
||||
a not in b
|
||||
# <- variable
|
||||
# ^ keyword
|
||||
# ^ keyword
|
||||
# ^ variable
|
||||
|
||||
a ~>> b = bind(a, b)
|
||||
# <- variable
|
||||
# ^ operator
|
||||
|
|
Loading…
Reference in New Issue