Permalink
Browse files

Hopefully sped up the grammar a little per Infininight's suggestion.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Erlang.tmbundle@4957 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 5372ace commit bcf18ad5316b8dc6f52174d43e9ee0859b3842f7 @mietek mietek committed Aug 26, 2006
Showing with 20 additions and 28 deletions.
  1. +20 −28 Syntaxes/Erlang.plist
View
@@ -458,12 +458,6 @@
<key>include</key>
<string>#variable</string>
</dict>
- <dict>
- <key>match</key>
- <string>\S</string>
- <key>name</key>
- <string>invalid.illegal.erlang</string>
- </dict>
</array>
</dict>
<key>expression</key>
@@ -749,6 +743,20 @@
</dict>
<key>function-call</key>
<dict>
+ <key>begin</key>
+ <string>(?=([a-z][a-zA-Z\d@_]*\s*:\s*)?[a-z][a-zA-Z\d@_]*\s*\()</string>
+ <key>end</key>
+ <string>(\))</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.operator.punctuation.erlang</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.function-call.erlang</string>
<key>patterns</key>
<array>
<dict>
@@ -778,17 +786,7 @@
</dict>
</dict>
<key>end</key>
- <string>(\))</string>
- <key>endCaptures</key>
- <dict>
- <key>1</key>
- <dict>
- <key>name</key>
- <string>keyword.operator.punctuation.erlang</string>
- </dict>
- </dict>
- <key>name</key>
- <string>meta.function-call.guard.erlang</string>
+ <string>(?=\))</string>
<key>patterns</key>
<array>
<dict>
@@ -830,17 +828,7 @@
</dict>
</dict>
<key>end</key>
- <string>(\))</string>
- <key>endCaptures</key>
- <dict>
- <key>1</key>
- <dict>
- <key>name</key>
- <string>keyword.operator.punctuation.erlang</string>
- </dict>
- </dict>
- <key>name</key>
- <string>meta.function-call.erlang</string>
+ <string>(?=\))</string>
<key>patterns</key>
<array>
<dict>
@@ -1700,6 +1688,10 @@
</dict>
<key>number</key>
<dict>
+ <key>begin</key>
+ <string>(?=\d)</string>
+ <key>end</key>
+ <string>(?!\d)</string>
<key>patterns</key>
<array>
<dict>

0 comments on commit bcf18ad

Please sign in to comment.