Permalink
Browse files

Support recursive variable expansion: ${${VARNAME}}.

git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/CMake.tmbundle@11675 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 4228e5e commit 12747778b328953d0dc5894bebc4075c61306f0f @sorbits sorbits committed Jun 21, 2009
Showing with 21 additions and 5 deletions.
  1. +21 −5 Syntaxes/CMake Listfile.tmLanguage
@@ -237,23 +237,39 @@
</dict>
<key>variables</key>
<dict>
- <key>captures</key>
+ <key>begin</key>
+ <string>\$(ENV)?\{</string>
+ <key>beginCaptures</key>
<dict>
- <key>1</key>
+ <key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.begin.cmake</string>
</dict>
- <key>3</key>
+ </dict>
+ <key>end</key>
+ <string>\}</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.end.cmake</string>
</dict>
</dict>
- <key>match</key>
- <string>(\$(ENV)?\{)\w+(\})</string>
<key>name</key>
<string>variable.cmake</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#variables</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\w+</string>
+ </dict>
+ </array>
</dict>
</dict>
<key>scopeName</key>

0 comments on commit 1274777

Please sign in to comment.