Permalink
Browse files

Minor enhancement of signature grammar

git-svn-id: http://svn.textmate.org/trunk/Bundles/Standard ML.tmbundle@7813 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent d000f3c commit d5429e1db00b34ee08a62a69b1aa0394fc46bb51 @commonlisp commonlisp committed Jul 26, 2007
Showing with 20 additions and 1 deletion.
  1. +20 −1 Syntaxes/Standard ML.plist
View
@@ -286,6 +286,25 @@
<string>meta.spec.ml.datatype</string>
<key>patterns</key>
<array>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.other.ml</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.type.datatype.ml</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>\b(and)\s+([a-zA-Z][a-zA-Z0-9'_]*)\s*(?==)</string>
+ <key>name</key>
+ <string>meta.spec.ml.datatype</string>
+ </dict>
<dict>
<key>captures</key>
<dict>
@@ -321,7 +340,7 @@
</dict>
</dict>
<key>match</key>
- <string>\|\s*([a-zA-Z][a-zA-Z0-9'_]*)\s+(of)?</string>
+ <string>\|\s*([a-zA-Z][a-zA-Z0-9'_]*)(\s+of)?</string>
<key>name</key>
<string>meta.datatype.rule.other.ml</string>
</dict>

0 comments on commit d5429e1

Please sign in to comment.