Home Download Buy Blog Forum Support

Filetype-dependent bracket matching rules

Filetype-dependent bracket matching rules

Postby FalconNL on Mon Jan 31, 2011 8:28 am

Is there any chance of making settings like match_brackets_angle file-type dependent? Because I would like to match angle brackets in html files, but enabling it breaks matching of lambda expressions like (\x -> x + 2) in Haskell.
FalconNL
 
Posts: 67
Joined: Thu May 29, 2008 8:17 pm

Re: Filetype-dependent bracket matching rules

Postby adzenith on Mon Jan 31, 2011 5:47 pm

You can make most settings file-type dependent, but you have to do it manually right now. Create a file called Haskell.sublime-settings in your packages/User directory, and in that file put this:
Code: Select all
{
    "match_brackets_angle": false
}

Now angle brackets will match everywhere but in Haskell files.
Alternatively, you could set the flag to false in your User Global Preferences and make an HTML.sublime-settings file that sets it to true.
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: Filetype-dependent bracket matching rules

Postby FalconNL on Mon Jan 31, 2011 6:58 pm

That will do very nicely. Thanks.
FalconNL
 
Posts: 67
Joined: Thu May 29, 2008 8:17 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests