[clangd-dev] Syntax highlighting of keywords
Sam McCall via clangd-dev
clangd-dev at lists.llvm.org
Fri Oct 25 01:21:10 PDT 2019
Yeah. I can see this being useful if lexing got more complicated (e.g. if
the committee added string interpolation).
But as it stands, I think we should be doing the simplest thing if
performance doesn't matter, and the minimal thing if it does.
Alternately we could highlight *everything* (including braces and such) to
allow editors without local highlighting. But I doubt they'll ever exist,
the flickering would be so bad.
On Fri, Oct 25, 2019, 9:59 AM Ilya Biryukov via clangd-dev <
clangd-dev at lists.llvm.org> wrote:
> Hi clangd-dev,
>
> I was wondering whether there's any value in the highlighting for
> "primitive" types being added on keywords like 'void', 'int', etc?
>
> - Any editor handles those with default syntax highlight.
> - It's trivial and does not require actual semantic knowledge.
>
> With that in mind, I wonder whether we should drop this completely and
> just let the editors handle the keywords?
> What do people think?
>
> --
> Regards,
> Ilya Biryukov
> _______________________________________________
> clangd-dev mailing list
> clangd-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/clangd-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/clangd-dev/attachments/20191025/539ffcae/attachment.html>
More information about the clangd-dev
mailing list