GtkSourceView must have some way of dealing with quoted strings, and
given that some languages contain multiple quoting systems there is
probably a way of constraining paren matching to the current line.
http://developer.gnome.org/gtksourceview/stable/lang-tutorial.html
suggests that a <context with end-at-line-end="true" would deal with
that issue.

But another issue is that we would not want matching on [ ] and { } pairs.

Anyways, since I do not know where the paren-matching aspect of that
system is implemented, and do not know how the relevant declarations
are defined, I'd probably ask for help on stack overflow.

-- 
Raul

On Tue, Oct 23, 2012 at 7:06 AM, Ric Sherlock <[email protected]> wrote:
> On Mon, Oct 22, 2012 at 5:50 AM, Raul Miller <[email protected]> wrote:
>>
>> Also, I was noticing that we do not have any editor support for
>> recognizing or moving between matching parenthesis, and that would be
>> handy when refactoring code like this.  It's almost enough to make me
>> want to start using emacs again (but I stopped because of RSI issues
>> and my health takes precedence over ease of use).
>>
>> FYI,
>>
>> --
>> Raul
>
> I know that gtksourceview (used in GtkIDE) is capable of providing
> support for bracket matching. When I put together the language
> definition file and style scheme definition I put it in the "will do
> later" box. I think I decided that it might not be straightforward
> because a non-matched right bracket is used to close explicit
> definitions.
> I agree it would be nice to have. If anyone interested in scratching
> that particular itch here are some starting resources:
>
> http://developer.gnome.org/gtksourceview/stable/rn02.html
> http://git.gnome.org/browse/gtksourceview/tree/data/language-specs/j.lang
> http://developer.gnome.org/gtksourceview/stable/GtkSourceBuffer.html#gtk-source-buffer-get-highlight-matching-brackets
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to