From ba7c7ae447305b300232badfa887224a3d36667d 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..945dc0f1d9 100644 --- a/python/ycm/semantic_highlighting.py +++ b/python/ycm/semantic_highlighting.py @@ -50,10 +50,12 @@ 'number': 'Number', 'regexp': 'String', 'operator': 'Operator', + 'decorator': 'Special', 'unknown': 'Normal', # These are not part of the spec, but are used by clangd 'bracket': 'Normal', + 'concept': 'Type', # These are not part of the spec, but are used by jdt.ls 'annotation': 'Macro', }