Skip to content

Commit

Permalink
Reorganize keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
jiribenes committed Jul 19, 2024
1 parent daaecec commit 0885ced
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions syntaxes/effekt.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,20 @@
},
"keywords": {
"patterns": [{
"match": "\\b(module|import|def|fun|val|var|effect|type|match|case|record|extern|include|box|unbox|in|region|new|resource|interface|namespace|module|include|export|as)\\b",
"match": "\\b(module|import|def|fun|val|var|effect|type|case|record|extern|include|box|unbox|in|region|new|resource|interface|namespace|module|include|export|as)\\b",
"name": "keyword.syntax.effekt"
}, {
"match": "\\b(resume|while|try|with|if|else|do|return|is|and)\\b",
"name": "keyword.control.effekt"
"match": "\\b(resume|return)\\b",
"name": "keyword.control.flow.jump.effekt"
}, {
"match": "\\b(do|try|with)\\b",
"name": "keyword.control.flow.effects.effekt"
}, {
"match": "\\b(while|match|case|if|else)\\b",
"name": "keyword.control.flow.effekt"
}, {
"match": "\\b(is|and)\\b",
"name": "keyword.operator.effekt"
}]
},
"literals": {
Expand Down

0 comments on commit 0885ced

Please sign in to comment.