diff --git a/Syntaxes/CoffeeScript.tmLanguage b/Syntaxes/CoffeeScript.tmLanguage index adabf04..7cb6b6a 100644 --- a/Syntaxes/CoffeeScript.tmLanguage +++ b/Syntaxes/CoffeeScript.tmLanguage @@ -25,24 +25,48 @@ captures - 1 + 3 name variable.parameter.function.coffee - 2 + 5 name storage.type.function.coffee + 2 + + name + meta.brace.round.coffee + + 4 + + name + meta.brace.round.coffee + comment match stuff like: a -> … match - (\([^()]*?\))\s*([=-]>) + ((\()([^()]*?)(\)))\s*([=-]>) name meta.inline.function.coffee + + captures + + 1 + + name + function.jQuery.binder.coffee + + + comment + match jQuery event binders (.on, .off) + match + \.(on|off)\b + captures @@ -517,6 +541,20 @@ name meta.delimiter.method.period.coffee + + captures + + 2 + + name + variable.other.property.js + + + match + (?<=\.)\s*[_$a-zA-Z][$\w]* + name + meta.property.object.coffee + match \{|\}