1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-20 01:08:33 +03:00

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
# 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\s.*?;" 0:meta
# attributes
add-highlighter shared/hare/code/ regex "@(offset|init|fini|test|noreturn|symbol)\b" 0:attribute