1
Fork 0
satellite/dotfiles/neovim/syntax/hkf.vim

33 lines
948 B
VimL
Raw Normal View History

if exists("b:current_syntax")
finish
endif
2022-05-10 14:28:36 +02:00
syntax keyword kfKeyword alias template layer using path name input output assume fun as import exporting module unsafe def
syntax keyword kfFunction LayerTemplate Sequence Chord Keycode Layer Broken
syntax match kfComment "\v--.*$"
syntax match kfOperator "\v_"
2022-05-10 14:28:36 +02:00
syntax match kfOperator "\v\,"
syntax match kfOperator "\v\."
syntax match kfOperator "\v\:"
syntax match kfOperator "\v\|"
syntax match kfOperator "\v\="
syntax match kfOperator "\v\=\>"
2022-05-10 14:28:36 +02:00
syntax match kfOperator "\v\-\>"
syntax match kfOperator "\v→"
syntax match kfOperator "\v\*"
syntax match kfOperator "\v\("
syntax match kfOperator "\v\)"
2022-05-10 14:28:36 +02:00
syntax match kfOperator "\vλ"
syntax region kfString start=/\v"/ skip=/\v\\./ end=/\v"/
highlight link kfKeyword Keyword
2022-05-10 14:28:36 +02:00
highlight link kfFunction Function
highlight link kfComment Comment
highlight link kfOperator Operator
highlight link kfString String
2022-09-12 13:50:02 +02:00
let b:current_syntax = "hkf"