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 Aug 6, 2024
1 parent 52618ae commit ba7c7ae
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': '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',
}
Expand Down

0 comments on commit ba7c7ae

Please sign in to comment.