mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
You may pass constants as type arguments the const generics feature. This is used in spellbook for example as a poor man's enum, for example `self.strip_suffix_only::<FULL_WORD>(word, hidden_homonym)`. With this change that `FULL_WORD` part is highlighted as a constant instead of a type. This change also highlight the underscore in type placeholders - this is similar to the highlighting done for bindings in Elixir or Erlang for example. In `Vec<_>` the underscore is highlighted the same as a comment. |
||
---|---|---|
.. | ||
grammars | ||
queries | ||
themes | ||
tutor |