Skip to content

Commit

Permalink
Merge pull request #8 from schneidmaster/fix-class
Browse files Browse the repository at this point in the history
Require a break before matching class regex
  • Loading branch information
cooncesean authored Mar 2, 2017
2 parents 3fad6e9 + 6cb0f88 commit 5d35221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/CJSX.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ contexts:
scope: constant.language.null.coffee
- match: '\b(?<!\.)(this|extends)(?!\s*[:=])\b'
scope: variable.language.coffee
- match: '(class\b)\s+(@?[a-zA-Z\$_][\w\.]*)?(?:\s+(extends)\s+(@?[a-zA-Z\$\._][\w\.]*))?'
- match: '\b(class\b)\s+(@?[a-zA-Z\$_][\w\.]*)?(?:\s+(extends)\s+(@?[a-zA-Z\$\._][\w\.]*))?'
scope: meta.class.coffee
captures:
1: storage.type.class.coffee
Expand Down

0 comments on commit 5d35221

Please sign in to comment.