Skip to content

Commit

Permalink
Allow spaces between function name and brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Sep 10, 2014
1 parent 1fb1b2e commit c38c4bd
Showing 1 changed file with 56 additions and 8 deletions.
64 changes: 56 additions & 8 deletions Better C++/CCpp.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -459,41 +459,89 @@
Pointer - CCpp
----------------------------------------------------->
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.pointer.ccp</string>
</dict>
</dict>
<key>match</key>
<string>\w+\:\:\w+\*</string>
<string>\w+\:\:\w+(\*)</string>
<key>name</key>
<string>pointer.ccpp</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.pointer.ccp</string>
</dict>
</dict>
<key>match</key>
<string>\*\(\w+\)</string>
<string>(\*)\(\w+\)</string>
<key>name</key>
<string>pointer.ccpp</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.pointer.ccp</string>
</dict>
</dict>
<key>match</key>
<string>\(\w+\)\*</string>
<string>\(\w+\)(\*)</string>
<key>name</key>
<string>pointer.ccpp</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.pointer.ccp</string>
</dict>
</dict>
<key>match</key>
<string>\w+\*</string>
<string>\w+(\*)</string>
<key>name</key>
<string>pointer.ccpp</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.pointer.ccp</string>
</dict>
</dict>
<key>match</key>
<string>\*\w+</string>
<string>(\*)\w+</string>
<key>name</key>
<string>pointer.ccpp</string>
</dict>
<!---------------------------------------------------
Address - CCpp
----------------------------------------------------->
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.address.ccp</string>
</dict>
</dict>
<key>match</key>
<string>\&\w+</string>
<string>(\&)\w+</string>
<key>name</key>
<string>address.ccpp</string>
</dict>
Expand All @@ -517,7 +565,7 @@
</dict>
<dict>
<key>match</key>
<string>\w+(?=\()</string>
<string>\w+\s*(?=\()</string>
<key>name</key>
<string>meta.function.c entity.name.function.c</string>
</dict>
Expand Down Expand Up @@ -559,7 +607,7 @@
---------------------------------------->
<dict>
<key>match</key>
<string>\!(?=\w)</string>
<string>\!\s*(?=\w)</string>
<key>name</key>
<string>keyword.operator.logical.ccpp</string>
</dict>
Expand Down

0 comments on commit c38c4bd

Please sign in to comment.