[clangd-dev] Syntax highlighting of keywords

Haojian Wu via clangd-dev clangd-dev at lists.llvm.org
Fri Oct 25 01:21:22 PDT 2019

I agree editors handle keyword highlightings very well, but they don't have
sufficient knowledge to highlight typealias/typedefs for primitive types.

// We want to highlight A, B as primitive types.
using A = int;
typedef int B;

On Fri, Oct 25, 2019 at 9:59 AM Ilya Biryukov <ibiryukov at google.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/clangd-dev/attachments/20191025/23d6e51b/attachment.html>

More information about the clangd-dev mailing list