Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg00801.html below:
Re: Initial fontification in sh-mode with tree-sittter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Yuan Fu Subject: Re: Initial fontification in sh-mode with tree-sittter Date: Sat, 12 Nov 2022 23:01:30 -0800
> On Nov 12, 2022, at 10:23 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> From: João Paulo Labegalini de Carvalho <jaopaulolc@gmail.com>
>> Date: Sat, 12 Nov 2022 15:04:26 -0700
>> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
>>
>> I see. This is tree-sitter-bashâs problem. When there are only newlines
>> between two EOFâs, the parser
>> erroneously marks everything that follows as heredoc_body. I tried
>> tree-sitterâs online demo and it gives
>> the same result[1]. We should report this to tree-sitter-bashâs author.
>>
>> Sorry for the delay. I confirmed the problem was in the tree-sitter-bash
>> side and submitted a PR to fix it:
>> https://github.com/tree-sitter/tree-sitter-bash/pull/137
>> Once my fixes are pulled in, there is no change required to my patch.
>
> Do we need to wait for their fix, or can we have code that will start
> working correctly when they fix the parser?
We donât need to wait for their fix. When they fix the parser and users
install the new parser, everything will work correctly.
Yuan
- Re: Initial fontification in sh-mode with tree-sittter, (continued)
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/11/04
- Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/11/12
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/11/12
- Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/11/12
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/11/16
- Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/11/16
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/11/17
- Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/11/17
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/11/17
- Re: Initial fontification in sh-mode with tree-sittter, Eli Zaretskii, 2022/11/13
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu <=
- Re: Initial fontification in sh-mode with tree-sittter, Eli Zaretskii, 2022/11/13
- Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/11/29
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/11/01
- Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/11/02
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