Permalink
Browse files

Added support to stored scoped functions in Go To Symbol

  • Loading branch information...
1 parent a0043c9 commit 30e3d56119bd59fb1fce051f9dc250df2aa84288 @alfredbaudisch alfredbaudisch committed Feb 7, 2013
Showing with 11 additions and 6 deletions.
  1. +11 −6 Syntaxes/Lua.tmLanguage
View
@@ -24,36 +24,41 @@
<key>1</key>
<dict>
<key>name</key>
- <string>entity.name.function.lua</string>
+ <string>entity.name.function.scope.lua</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
+ <string>entity.name.function.lua</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
<string>keyword.operator.lua</string>
</dict>
- <key>3</key>
+ <key>4</key>
<dict>
<key>name</key>
<string>keyword.control.lua</string>
</dict>
- <key>4</key>
+ <key>5</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.begin.lua</string>
</dict>
- <key>5</key>
+ <key>6</key>
<dict>
<key>name</key>
<string>variable.parameter.function.lua</string>
</dict>
- <key>6</key>
+ <key>7</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.end.lua</string>
</dict>
</dict>
<key>match</key>
- <string>\b([a-zA-Z_]+)\s*(=)\s*(function)\s*(\()([^)]*)(\))</string>
+ <string>\b([a-zA-Z_.:]+[.:])?([a-zA-Z_]\w*)\s*=\s*(function)\s*(\()([^)]*)(\))</string>
<key>name</key>
<string>meta.function.lua</string>
</dict>

0 comments on commit 30e3d56

Please sign in to comment.