Skip to content

Commit bbc0403

Browse files
allenyadelerno
authored andcommitted
Kakoune: Add a shebang comment highlighter
1 parent aad9bdc commit bbc0403

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kakoune/c3.kak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ addhl shared/c3/code/func regex '(?:[@#$])?\b_*[a-z][a-zA-Z0-9_]*\s*(?=\
3030
addhl shared/c3/code/module regex '([a-z0-9_]+)(?=::)' 1:module
3131
# code/module-decl highlights '::' as modules, but they should not be highlighted
3232
addhl shared/c3/code/namespace regex '::' 0:Default
33+
addhl shared/c3/code/shebang regex '\A#! ?/.*?\n' 0:comment
3334

3435
evaluate-commands %sh{
3536
# generated using "c3c --list-{} | string join ' '" in fish

0 commit comments

Comments
 (0)