Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from abusalimov/15-dot-access
Browse files Browse the repository at this point in the history
dot-access: Recognize 'v.member' and 'p->member' access
  • Loading branch information
abusalimov committed Oct 25, 2015
2 parents 2fe62d6 + d6b263a commit 8c9585e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions C Improved.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@
<array>
<dict> <key>include</key> <string>#lex</string> </dict>
<dict> <key>include</key> <string>#support-function</string> </dict>
<dict>
<key>match</key> <string>(?:(?&lt;=\.)|(?&lt;=-&gt;))\b([A-Za-z_]\w*+)\b</string>
<key>name</key> <string>variable.other.dot-access.c support.function.any-method.c</string>
</dict>
<dict>
<key>match</key> <string>(?:[A-Za-z_]\w*+|::[^:])++</string>
<key>name</key> <string>support.function.any-method.c</string>
Expand Down Expand Up @@ -1058,11 +1062,19 @@
<key>patterns</key>
<array>
<dict> <key>include</key> <string>#comments</string> </dict>
<dict> <key>include</key> <string>#lex-access</string> </dict>
<dict> <key>include</key> <string>#lex-continuation</string> </dict>
<dict> <key>include</key> <string>#lex-number</string> </dict>
<dict> <key>include</key> <string>#lex-string</string> </dict>
</array>
</dict>
<key>lex-access</key>
<dict>
<key>match</key>
<string>(?:(?&lt;=\.)|(?&lt;=-&gt;))\b([a-zA-Z_]\w*+)\b(?!(?:\s|/\*.*?\*/)*+\()</string>
<key>name</key>
<string>variable.other.dot-access.c</string>
</dict>
<key>lex-continuation</key>
<dict>
<key>patterns</key>
Expand Down

0 comments on commit 8c9585e

Please sign in to comment.