Skip to content

Commit

Permalink
Merge pull request #9 from schneidmaster/es6-keywords
Browse files Browse the repository at this point in the history
Match on ES6-style module keywords.
  • Loading branch information
cooncesean authored Mar 2, 2017
2 parents 5d35221 + 9c00c36 commit 0baea06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions syntax/CJSX.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ scope: source.coffee
contexts:
main:
- include: jsx
- match: (?<!\.)\b(?>import|export|default|from|as)\b
comment: "match ES6-style module keywords"
scope: keyword.operator.coffee
- match: '(\([^()]*?\))\s*([=-]>)'
comment: "match stuff like: a -> …"
scope: meta.inline.function.coffee
Expand Down

0 comments on commit 0baea06

Please sign in to comment.