I used a trick way to match Sass functions in a new syntax highlighting package. But there is a little problem.
<key>function</key>
<dict>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.round-brackets.sass</string>
</dict>
</dict>
<key>match</key>
<string>(?<=\s|\(])[a-zA-Z0-9_-]+(\()</string>
<key>name</key>
<string>support.function.name.sass</string>
</dict>
Left side: TextMate, Right side: Sublime Text
As you can see, the left round bracket can be changed colour in TextMate, but not in Sublime Text.
I surmise that beginCaptures / endCaptures cannot work with match rule (they can work with begin/end rule). Is that a bug? Or I did something wrong?
Thanks
