Skip to content

Commit

Permalink
Add new semantic token types
Browse files Browse the repository at this point in the history
The `decorator` type was introduced in LSP 1.17.
The `concept` type is used by clangd.
  • Loading branch information
bstaletic committed May 10, 2024
1 parent 4556062 commit f0a9213
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/ycm/semantic_highlighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
Expand Down

0 comments on commit f0a9213

Please sign in to comment.