hare.kak: highlight module imports as "module"

This commit is contained in:
Cormac Stephenson 2022-06-11 05:55:24 +01:00
parent db856ba288
commit 971b52c94e

View File

@ -44,8 +44,8 @@ provide-module hare %§
add-highlighter shared/hare/rune/ regex "(\\U[0-9a-fA-F]{8})" 0:meta add-highlighter shared/hare/rune/ regex "(\\U[0-9a-fA-F]{8})" 0:meta
# imports # imports
add-highlighter shared/hare/code/ regex "\buse\s.*?(?=;)" 0:module
add-highlighter shared/hare/code/ regex "\buse\b" 0:meta add-highlighter shared/hare/code/ regex "\buse\b" 0:meta
add-highlighter shared/hare/code/ regex "\buse\s.*?;" 0:meta
# attributes # attributes
add-highlighter shared/hare/code/ regex "@(offset|init|fini|test|noreturn|symbol)\b" 0:attribute add-highlighter shared/hare/code/ regex "@(offset|init|fini|test|noreturn|symbol)\b" 0:attribute