RRethy / vim-illuminate

illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
2.16k stars 47 forks source link

Words containing ? character not illuminated #36

Closed bryanenders closed 5 years ago

bryanenders commented 5 years ago

It appears that words containing a question mark (as identified by a highlight-group) aren’t picked up by Illuminate, though they work as expected with super star operations. For example, in the Elixir identifier floopy? the question mark is a word character:

def handle_mattress(%Mattress{floopy?: true}),
  do: dont_panic!()

def handle_mattress(%Mattress{floopy?: false}),
  do: panic!()

In the above example floopy? is not highlighted by Illuminate, thought it is highlighted by a */# operation. Illuminate handles exclamation points in words correctly, so this seems to be an issue affecting the question mark in particular.