" https://github.com/gleam-lang/gleam.vim/blob/6739d8b656adb5d2807675b7652afb6e257b2b1c/syntax/gleam.vim if exists("b:current_syntax") finish endif let b:current_syntax = "gleam" " Keywords syntax keyword gleamKeyword \ module import pub panic use \ type let as if else todo const \ case assert tuple try opaque highlight link gleamKeyword Keyword " Function definition syntax keyword gleamDef fn nextgroup=gleamFunctionDef skipwhite skipempty highlight link gleamDef Keyword syntax match gleamFunctionDef "[a-z_-][0-9a-z_-]*" contained skipwhite skipnl highlight link gleamFunctionDef Function " Int syntax match gleamInt '\<\(0x[a-fA-F0-9_]\+\|[0-9][0-9_]*\)\>' highlight link gleamInt Number " Float syntax match gleamFloat '\<[0-9][0-9_]*\.[0-9_]*\>' highlight link gleamFloat Float " Operators syntax match gleamOperator "\([-!#$%`&\*\+./<=>@\\^|~:]\|\<\>\)" highlight link gleamOperator Operator " Type syntax match gleamType "\([a-z]\)\@