diff --git a/syntax/CJSX.sublime-syntax b/syntax/CJSX.sublime-syntax index a7d2ba6..c852681 100644 --- a/syntax/CJSX.sublime-syntax +++ b/syntax/CJSX.sublime-syntax @@ -14,6 +14,9 @@ scope: source.coffee contexts: main: - include: jsx + - match: (?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