oops we got off the list

---------- Forwarded message ---------
From: Lex Trotman <ele...@gmail.com>
Date: Fri, 27 Jan 2023 at 17:00
Subject: Re: [Geany-Devel] Re: bracket colors plugin
To: Asif Aaron Amin <asifa...@utexas.edu>


> ...
> I'm just about ready to make a pull request (learning autotools took longer 
> than I'd like to admit 😅).


Well, you are ahead of me for autotools, I _refuse_ to learn it ;-P

...
>
>  For my plugin, I'd like to ignore any brackets in strings, docstring, 
> comments, etc.
> ex)

...
>
> My naive approach was to hardcode the style numbers that correspond to 
> comments, strings, etc. and just ignore brackets with those styles. This was 
> fine for most C-like languages and Python (90% of what I use at my job) but 
> when I was checking with other languages this didn't work well and in some 
> languages most of the brackets would get ignored.


See `highlighting_is_comment_style()` `highlighting_is_string_style()`
and `highlighting_is_code_style()` which are all in the plugin API.
Hopefully that will make it simpler.

Whilst these may be inaccurate for obscure/new languages, fixing them
will then improve all uses (and its the responsibility of folks using
the language IMO, neither you nor Geany devs can be expected to be
experts in all languages).

Cheers
Lex
...
_______________________________________________
Devel mailing list -- devel@lists.geany.org
To unsubscribe send an email to devel-le...@lists.geany.org

Reply via email to