A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg01384.html below:

Re: Tree sitter support for C-like languages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Theodor Thornhill Subject: Re: Tree sitter support for C-like languages Date: Mon, 21 Nov 2022 12:15:23 +0100
>> On Nov 16, 2022, at 12:58 PM, Yuan Fu <casouri@gmail.com> wrote:
>> 
>>>> 
>>>>  :language mode
>>>>  :override t
>>>>  :feature 'statement
>>>>  '((expression_statement (identifier) @font-lock-variable-name-face)
>>>>    (labeled_statement
>>>>     label: (statement_identifier) @font-lock-type-face))
>>>> 
>>> 
>>> stuff like:
>>> ```
>>> add_edge:  // <- this thing
>>> gx += WINDOW_LEFT_EDGE_X (w);
>>> gy += WINDOW_TOP_EDGE_Y (w);
>>> 
>>> store_rect: // <- and this thing
>>> STORE_NATIVE_RECT (*rect, gx, gy, width, height);
>>> 
>>> ```
>> 
>> What’s the intention of this query?
>> 
>> (expression_statement (identifier) @font-lock-variable-name-face)
>> 
>> It seems to match statements like
>> 
>> var;
>> 
>> ?
>> 
>> Yuan
>
> You probably missed this message, ping :-)
>

Yeah, sorry!  I think it can be removed.  I really don't remember why I
made that...

I added the fix in a patch, and also fixed a typo (I think that messed
up some fontlocking in c-ts-mode) as an apology :-)

Theo



0001-Fix-some-font-lock-settings.patch
Description: Text Data


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4