[txmt-dev] Re: Working with indentation rules
Jacob Carlborg
doob at me.com
Wed Sep 18 18:54:12 UTC 2013
On 2013-09-18 12:21, Allan Odgaard wrote:
> It will automatically work, if you assign the scopes to the braces.
I tried to copy what's in the C bundle but I couldn't get it to work. I
added the following:
<key>block</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.block.begin.d</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.block.end.d</string>
</dict>
</dict>
</dict>
</array>
</dict>
Below this line, just before the "comments" key.
https://github.com/textmate/d.tmbundle/blob/master/Syntaxes/D.tmLanguage#L560
--
/Jacob Carlborg
More information about the textmate-dev
mailing list