Permalink
Browse files

fixes #8 GotoSymbol for cfscript functions

very basic support #functions should capture the full function
  • Loading branch information...
atomi
atomi committed Jan 23, 2012
1 parent 0b726cc commit ca6d206d5f6184bf0380fa5fa71107deb1682757
Showing with 68 additions and 0 deletions.
  1. +49 −0 Cfscript.tmLanguage
  2. +19 −0 Symbol List - function.tmPreferences
View
@@ -30,6 +30,55 @@
<key>repository</key>
<dict>
+ <!-- functions -->
+ <key>functions</key>
+ <dict>
+ <key>begin</key>
+ <string>function\s(\w+)(\()</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>meta.function.identifier.cfscript</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.function-parameters.begin.cfscript</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\)</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.function-parameters.end.cfscript</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.function-call.cfscript</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>,</string>
+ <key>name</key>
+ <string>punctuation.definition.seperator.parameter.cfscript</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#cfscript-code</string>
+ </dict>
+ </array>
+ </dict>
+ <!-- /functions -->
+
+
+
+
<key>cfscript</key>
<dict>
<key>patterns</key>
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>name</key>
+ <string>Symbol List Function</string>
+ <key>scope</key>
+ <string>source.cfscript meta.function.identifier</string>
+ <key>settings</key>
+ <dict>
+ <key>showInSymbolList</key>
+ <integer>1</integer>
+ <key>symbolTransformation</key>
+ <string>s/^/func: /</string>
+ </dict>
+ <key>uuid</key>
+ <string>98C0BD70-41E5-11E1-B86C-0800200C9A66</string>
+</dict>
+</plist>

0 comments on commit ca6d206

Please sign in to comment.