Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[imp-dev] Fence matching in the IMP editor

Hi All,

I've just added a tiny but useful feature to the UniversalEditor: the editor
now highlights the matching "fence character" (e.g. brackets, parens, or
braces) as you move the text caret/cursor around.

This uses the ILanguageSyntaxProperties implementation (if available),
and does nothing if no ILanguageSyntaxProperties implementation
exists, or if its getFences() method returns null.

There are also now two related IMP preferences: one to turn fence
matching on/off, and one to specify the color for the match highlighting.
Neither of these is exposed in the UI at present.

At the moment, the match-enabling preference is silently ignored, and
is interpreted as always on. Presumably this isn't a big deal for now,
but of course it should be fixed.

  https://bugs.eclipse.org/bugs/show_bug.cgi?id=235237

Cheers,
 - Bob


Back to the top