From 636cf8575bd736748e5f9623c75532a2ce1ff1fa Mon Sep 17 00:00:00 2001 From: jconsigliere Date: Mon, 28 Mar 2016 14:53:42 +0100 Subject: [PATCH] feat: add several new scopes --- Syntaxes/CoffeeScript.tmLanguage | 44 +++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) 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 \{|\}