1
Fork 0
keyswirl/layout-lens/vim/syntax/lens.vim

25 lines
734 B
VimL
Raw Normal View History

2024-02-22 01:07:41 +01:00
" if exists("b:current_syntax")
" finish
" endif
set iskeyword+=-
2024-02-22 13:11:07 +01:00
syntax keyword lensKeyword physical section layergroup layer chordgroup block end
2024-02-22 01:07:41 +01:00
syntax keyword lensAction sticky-switch switch
2024-02-22 13:11:07 +01:00
syntax keyword lensFunction columns place action key
2024-02-22 01:07:41 +01:00
syntax keyword lensLayerName center topleft topright bottomleft bottomright
syntax match lensComment "\v--.*$"
syntax match lensOperator "\v\=\>"
syntax match lensHexColor "#[0-9a-fA-F]\{6\}"
highlight link lensAction Identifier
highlight link lensKeyword Keyword
highlight link lensLayerName Constant
highlight link lensComment Comment
highlight link lensOperator Operator
highlight link lensHexColor String
highlight link lensFunction Function
let b:current_syntax = "lens"