[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SPAM UNSURE] Standardizing tree-sitter fontification features
From: |
Yuan Fu |
Subject: |
Re: [SPAM UNSURE] Standardizing tree-sitter fontification features |
Date: |
Sat, 26 Nov 2022 14:05:50 -0800 |
> On Nov 26, 2022, at 6:29 AM, Stephen Leake <stephen_leake@stephe-leake.org>
> wrote:
>
> Stephen Leake <stephen_leake@stephe-leake.org> writes:
>
>>
>> namespace would be useful; in some languages, like C++, the syntax
>> namespace::namespace::object.member makes it clear which identifiers are
>> namespaces. In others, like Ada the syntax is
>> namespace.namespace.object.member, so it's not clear.
>
> Never mind; for Ada, this requires name resolution, which is beyond what
> tree-sitter can accomplish (same for the wisi parser). The
> ada_language_server does do name resolution, so it can label namespace
> accurately.
Indeed, I glance at their types and modifiers, and they are very rich in
semantics, whereas we only have the syntax to work with.
Yuan
- Re: Standardizing tree-sitter fontification features, (continued)
Re: Standardizing tree-sitter fontification features, Eli Zaretskii, 2022/11/25
Re: Standardizing tree-sitter fontification features, Stefan Monnier, 2022/11/24
Re: Standardizing tree-sitter fontification features, Stephen Leake, 2022/11/26