emacs-devel
[Top][All Lists]
Advanced

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

Re: Standardizing tree-sitter fontification features


From: Mattias Engdegård
Subject: Re: Standardizing tree-sitter fontification features
Date: Mon, 5 Dec 2022 11:26:21 +0100

5 dec. 2022 kl. 09.58 skrev Theodor Thornhill <theo@thornhill.no>:

> I agree - but in most tree-sitter languages it seems like there usually
> is no distinction between them.  We need to implement some heuristics to
> locate a comment above method etc, if I'm not mistaken.

At least distinguish doc comments by their special syntax, such as `-- !` or 
`/**`; it's better than nothing and only requires local analysis. A grammar 
tie-in to make sure they aren't misplaced is obviously better (and valuable) 
but it can be a later improvement.





reply via email to

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