Add @packed to hare highlighter

ref: https://todo.sr.ht/~sircmpwn/hare/783
This commit is contained in:
Stacy Harper 2023-01-02 20:37:11 +01:00
parent 938be7a7b0
commit 8c4b591a9e
No known key found for this signature in database
GPG Key ID: EABA44759877E02A

View File

@ -51,7 +51,7 @@ provide-module hare %§
add-highlighter shared/hare/code/ regex "\b([0-9a-zA-Z_]*)\h*\(" 1:function add-highlighter shared/hare/code/ regex "\b([0-9a-zA-Z_]*)\h*\(" 1:function
# attributes # attributes
add-highlighter shared/hare/code/ regex "@(offset|init|fini|test|noreturn|symbol)\b" 0:attribute add-highlighter shared/hare/code/ regex "@(packed|offset|init|fini|test|noreturn|symbol)\b" 0:attribute
# declarations # declarations
add-highlighter shared/hare/code/ regex "\b(let|export|const)\b" 0:meta add-highlighter shared/hare/code/ regex "\b(let|export|const)\b" 0:meta