From ca6d206d5f6184bf0380fa5fa71107deb1682757 Mon Sep 17 00:00:00 2001 From: atomi Date: Mon, 23 Jan 2012 07:20:21 -0800 Subject: [PATCH] fixes #8 GotoSymbol for cfscript functions very basic support #functions should capture the full function --- Cfscript.tmLanguage | 49 ++++++++++++++++++++++++++++ Symbol List - function.tmPreferences | 19 +++++++++++ 2 files changed, 68 insertions(+) create mode 100644 Symbol List - function.tmPreferences diff --git a/Cfscript.tmLanguage b/Cfscript.tmLanguage index 5b95a34..a9bf60c 100644 --- a/Cfscript.tmLanguage +++ b/Cfscript.tmLanguage @@ -30,6 +30,55 @@ repository + + functions + + begin + function\s(\w+)(\() + beginCaptures + + 1 + + name + meta.function.identifier.cfscript + + 2 + + name + punctuation.definition.function-parameters.begin.cfscript + + + end + \) + endCaptures + + 0 + + name + punctuation.definition.function-parameters.end.cfscript + + + name + meta.function-call.cfscript + patterns + + + match + , + name + punctuation.definition.seperator.parameter.cfscript + + + include + #cfscript-code + + + + + + + + cfscript patterns diff --git a/Symbol List - function.tmPreferences b/Symbol List - function.tmPreferences new file mode 100644 index 0000000..e70de9c --- /dev/null +++ b/Symbol List - function.tmPreferences @@ -0,0 +1,19 @@ + + + + + name + Symbol List Function + scope + source.cfscript meta.function.identifier + settings + + showInSymbolList + 1 + symbolTransformation + s/^/func: / + + uuid + 98C0BD70-41E5-11E1-B86C-0800200C9A66 + +