Permalink
Browse files

• Adding functions and macros to the symbol list

git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/CMake.tmbundle@9731 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 7e16cf3 commit 3693e69ab0646626a8fe68902fc4ef2026b00e16 @ciaran ciaran committed May 25, 2008
Showing with 61 additions and 0 deletions.
  1. +19 −0 Preferences/Symbol List.tmPreferences
  2. +42 −0 Syntaxes/CMake Listfile.tmLanguage
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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</string>
+ <key>scope</key>
+ <string>meta.function-call.function.cmake</string>
+ <key>settings</key>
+ <dict>
+ <key>showInSymbolList</key>
+ <string>1</string>
+ <key>symbolTransformation</key>
+ <string>s/^(\w+).*$/$1/</string>
+ </dict>
+ <key>uuid</key>
+ <string>3C9C38E0-2EC5-4963-9FC1-BD2D04EC62F7</string>
+</dict>
+</plist>
@@ -19,6 +19,48 @@
<array>
<dict>
<key>begin</key>
+ <string>(?i)^\s*(function|macro)\s*(\()</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>support.function.cmake</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.parameters.begin.command.cmake</string>
+ </dict>
+ </dict>
+ <key>contentName</key>
+ <string>meta.function-call.function.cmake</string>
+ <key>end</key>
+ <string>(\))</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.parameters.end.command.cmake</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.function-call.command.cmake</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#argument-constants</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#items</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
<string>(?ix)
^\s* # Start of the line with optional preceding space
(?: # Either a control flow keyword

0 comments on commit 3693e69

Please sign in to comment.