bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_T


From: Yuan Fu
Subject: bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE
Date: Wed, 26 Apr 2023 20:14:45 -0700

> 
> My idea right now is to use the range feature in tree-sitter. Since the 
> “body” of FOR_EACH_TAIL is valid C, I can either set the ranges for the 
> parser so it ignores FOR_EACH_TAIL

I end up going this route.

> or I can add another parser that only parses the body of FOR_EACH_TAIL.

Ok, here’s the patch. Eli, would you give it a try? This is a sizable patch so 
I’m not sure if you want it on emacs-29 or master.

Yuan

Attachment: for-each-tail-fix.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]