Sublime Forum

Two odd unrelated bugs

#1

The first one is an oddity in bracket matching. In a PHP file such as the following:

[code]<?php

$test->something();

?>[/code]
It picks up the arrow operator as the closing angle bracket for the opening PHP tag.

For the second one, not sure if it was changed in the latest beta or the one before, but in the per-type file preferences for JavaScript ‘rulers 80’ is set. Took me a while to figure out what the line was coming from and why it was there. Not sure if it’s intended to be on in a clean install.

0 Likes

#2

The bracket matching is a simple character based system, that isn’t aware of the lexing rules of the current language. This is one of the reasons why angle brackets aren’t matched by default. I would like to change this in the future so it can handle situations like the one above.

I’ve turned the vertical rulers off by default for 20091017 beta - I agree with you, it doesn’t make any sense to have them on in a clean install.

0 Likes