Fix function highlighting with numbers
This commit is contained in:
parent
b0ac6c8eb4
commit
ca8cab0439
|
@ -48,7 +48,7 @@ provide-module hare %§
|
||||||
add-highlighter shared/hare/code/ regex "\buse\b" 0:meta
|
add-highlighter shared/hare/code/ regex "\buse\b" 0:meta
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
add-highlighter shared/hare/code/ regex "\b([a-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 "@(offset|init|fini|test|noreturn|symbol)\b" 0:attribute
|
||||||
|
@ -90,7 +90,7 @@ provide-module hare %§
|
||||||
add-highlighter shared/hare/code/ regex "\b[0-9]+([eE][-+]?[0-9]+)?(?=f)" 0:value
|
add-highlighter shared/hare/code/ regex "\b[0-9]+([eE][-+]?[0-9]+)?(?=f)" 0:value
|
||||||
|
|
||||||
# constants
|
# constants
|
||||||
add-highlighter shared/hare/code/ regex "\b[A-Z0-9_]*\b" 0:value
|
add-highlighter shared/hare/code/ regex "\b[0-9A-Z_]*\b" 0:value
|
||||||
|
|
||||||
# control flow
|
# control flow
|
||||||
add-highlighter shared/hare/code/ regex "\b(for|if|else|switch|match|return|break|continue|defer|yield|case|static)\b" 0:keyword
|
add-highlighter shared/hare/code/ regex "\b(for|if|else|switch|match|return|break|continue|defer|yield|case|static)\b" 0:keyword
|
||||||
|
|
Loading…
Reference in New Issue
Block a user