From f0a92130bbaf7620f495ed48bb8266807cd499be Mon Sep 17 00:00:00 2001 From: Boris Staletic Date: Fri, 10 May 2024 20:20:58 +0200 Subject: [PATCH] Add new semantic token types The `decorator` type was introduced in LSP 1.17. The `concept` type is used by clangd. --- python/ycm/semantic_highlighting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/ycm/semantic_highlighting.py b/python/ycm/semantic_highlighting.py index d462d304ed..74dc5a1c60 100644 --- a/python/ycm/semantic_highlighting.py +++ b/python/ycm/semantic_highlighting.py @@ -50,10 +50,12 @@ 'number': 'Number', 'regexp': 'String', 'operator': 'Operator', + 'decorator': 'Comment', 'unknown': 'Normal', # These are not part of the spec, but are used by clangd 'bracket': 'Normal', + 'concept': 'Normal', # These are not part of the spec, but are used by jdt.ls 'annotation': 'Macro', }