Permalink
Browse files

refactor c function call matching into its own repository item

  • Loading branch information...
joachimm committed Nov 20, 2011
1 parent 9f6cc29 commit e953dc560c91b6ff30b5e44c59ff351faa47ddb9
Showing with 31 additions and 26 deletions.
  1. +31 −26 Syntaxes/C.plist
View
@@ -499,32 +499,8 @@
<string>#libc</string>
</dict>
<dict>
- <key>captures</key>
- <dict>
- <key>1</key>
- <dict>
- <key>name</key>
- <string>punctuation.whitespace.function-call.leading.c</string>
- </dict>
- <key>2</key>
- <dict>
- <key>name</key>
- <string>support.function.any-method.c</string>
- </dict>
- <key>3</key>
- <dict>
- <key>name</key>
- <string>punctuation.definition.parameters.c</string>
- </dict>
- </dict>
- <key>match</key>
- <string>(?x) (?: (?= \s ) (?:(?&lt;=else|new|return) | (?&lt;!\w)) (\s+))?
- (\b
- (?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\s*\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\b | :: )++ # actual name
- )
- \s*(\()</string>
- <key>name</key>
- <string>meta.function-call.c</string>
+ <key>include</key>
+ <string>#c_function_call</string>
</dict>
<dict>
<key>captures</key>
@@ -565,6 +541,35 @@
</dict>
</array>
</dict>
+ <key>c_function_call</key>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.whitespace.function-call.leading.c</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>support.function.any-method.c</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.parameters.c</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>(?x) (?: (?= \s ) (?:(?&lt;=else|new|return) | (?&lt;!\w)) (\s+))?
+ (\b
+ (?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\s*\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\b | :: )++ # actual name
+ )
+ \s*(\()</string>
+ <key>name</key>
+ <string>meta.function-call.c</string>
+ </dict>
<key>comments</key>
<dict>
<key>patterns</key>

0 comments on commit e953dc5

Please sign in to comment.