Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
[#9] == matched as keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhue committed Mar 25, 2020
1 parent 5ca4917 commit fe2b9b4
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions syntaxes/tony.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"include": "#punctuation"
},
{
"include": "#operators"
"include": "#identifiers"
},
{
"include": "#identifiers"
"include": "#operators"
},
{
"include": "#booleans"
Expand All @@ -29,10 +29,16 @@
],
"repository": {
"keywords": {
"patterns": [{
"name": "keyword",
"match": "\\b(import|from|export|return|if|then|else|case|when|module|in)\\b"
}]
"patterns": [
{
"name": "keyword",
"match": "\\b(import|from|export|return|if|then|else|case|when|in)\\b"
},
{
"name": "storage.type",
"match": "\\b(module)\\b"
}
]
},
"punctuation": {
"name": "comment",
Expand All @@ -43,12 +49,6 @@
}
]
},
"operators": {
"patterns": [{
"name": "keyword.operator",
"match": "\\-\\>|\\:\\=|\\=\\>|\\?|\\="
}]
},
"identifiers": {
"patterns": [
{
Expand All @@ -65,7 +65,7 @@
"identifier_operators": {
"patterns": [{
"name": "support.variable",
"match": "(==|[!@$%^&*|<>~*\\\\\\-+\\/.]+)=*>?"
"match": "[!@$%^&*|<>~*\\\\\\-+.=]+"
}]
},
"infix_operators": {
Expand All @@ -81,6 +81,12 @@
}
}
},
"operators": {
"patterns": [{
"name": "keyword.operator",
"match": "\\-\\>|\\:\\=|\\=\\>|\\?|\\="
}]
},
"booleans": {
"patterns": [{
"name": "constant.language",
Expand Down

0 comments on commit fe2b9b4

Please sign in to comment.