Give an explicit name to the Crystal highlighter

This commit is contained in:
Alex Leferry 2 2020-01-17 23:37:17 +01:00
parent 9ca479ed40
commit c13e123096

View File

@ -8,7 +8,7 @@ hook global BufCreate '.*\.cr' %{
hook global WinSetOption filetype=crystal %{ hook global WinSetOption filetype=crystal %{
require-module crystal require-module crystal
evaluate-commands set-option window static_words %opt(crystal_keywords) %opt(crystal_attributes) %opt(crystal_objects) evaluate-commands set-option window static_words %opt(crystal_keywords) %opt(crystal_attributes) %opt(crystal_objects)
add-highlighter window/ ref crystal add-highlighter window/crystal ref crystal
hook -group crystal window InsertChar '\n' crystal-new-line-inserted hook -group crystal window InsertChar '\n' crystal-new-line-inserted
hook -always -once window WinSetOption filetype=.* %{ hook -always -once window WinSetOption filetype=.* %{
remove-highlighter window/crystal remove-highlighter window/crystal