Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enhanced the scoping of the punctuation used in placeholder definitions.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Erlang.tmbundle@5085 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit d781eecdfddcb299bfc99fc72701d818f0a0c907 1 parent a1e5385
@mietek mietek authored
Showing with 38 additions and 5 deletions.
  1. +38 −5 Syntaxes/Erlang.plist
View
43 Syntaxes/Erlang.plist
@@ -3,9 +3,7 @@
<plist version="1.0">
<dict>
<key>comment</key>
- <string>The recognition of function definitions and compiler directives (such as module, record and macro definitions) requires that each of the aforementioned constructs must be the first string inside a line (except for whitespace). Also, the function/module/record/macro names must be given unquoted.
-To do: maybe scope some more punctuation in placeholders.
--- desp</string>
+ <string>The recognition of function definitions and compiler directives (such as module, record and macro definitions) requires that each of the aforementioned constructs must be the first string inside a line (except for whitespace). Also, the function/module/record/macro names must be given unquoted. -- desp</string>
<key>fileTypes</key>
<array>
<string>erl</string>
@@ -2408,9 +2406,39 @@ To do: maybe scope some more punctuation in placeholders.
<key>name</key>
<string>punctuation.definition.placeholder.erlang</string>
</dict>
+ <key>10</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.separator.placeholder-parts.erlang</string>
+ </dict>
+ <key>12</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.separator.placeholder-parts.erlang</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.separator.placeholder-parts.erlang</string>
+ </dict>
+ <key>4</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.separator.placeholder-parts.erlang</string>
+ </dict>
+ <key>6</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.separator.placeholder-parts.erlang</string>
+ </dict>
+ <key>8</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.separator.placeholder-parts.erlang</string>
+ </dict>
</dict>
<key>match</key>
- <string>(~)((\-?\d++|\*))?(\.(\d++|\*))?(\..)?[~cfegswpWPBX#bx\+ni]</string>
+ <string>(~)((\-)?\d++|(\*))?((\.)(\d++|(\*)))?((\.)((\*)|.))?[~cfegswpWPBX#bx\+ni]</string>
<key>name</key>
<string>constant.other.placeholder.erlang</string>
</dict>
@@ -2422,9 +2450,14 @@ To do: maybe scope some more punctuation in placeholders.
<key>name</key>
<string>punctuation.definition.placeholder.erlang</string>
</dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.separator.placeholder-parts.erlang</string>
+ </dict>
</dict>
<key>match</key>
- <string>(~)\*?(\d++)?[~du\-#fsacl]</string>
+ <string>(~)(\*)?(\d++)?[~du\-#fsacl]</string>
<key>name</key>
<string>constant.other.placeholder.erlang</string>
</dict>
Please sign in to comment.
Something went wrong with that request. Please try again.