Sublime Forum

Filetype-dependent bracket matching rules

#1

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.

0 Likes

#2

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:

{ "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.

0 Likes

#3

That will do very nicely. Thanks.

0 Likes