[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
for-each-tail-fix.patch
Description: Binary data
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Eli Zaretskii, 2023/04/19
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Yuan Fu, 2023/04/21
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Eli Zaretskii, 2023/04/22
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Dmitry Gutov, 2023/04/23
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Yuan Fu, 2023/04/26
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE,
Yuan Fu <=
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Eli Zaretskii, 2023/04/27
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Yuan Fu, 2023/04/27
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Eli Zaretskii, 2023/04/28
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Yuan Fu, 2023/04/29
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Eli Zaretskii, 2023/04/30
- bug#62951: 29.0.90; c-ts-mode: Incorrect fontification due to FOR_EACH_TAIL_SAFE, Dmitry Gutov, 2023/04/27