mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
runtime(gleam): add @Spell clusters to syntax script
closes: #17324 Signed-off-by: Kat <65649991+00-kat@users.noreply.github.com> Signed-off-by: Kirill Morozov <kirill@robotix.pro> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
1aa68dffbf
commit
6451e5f517
@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Kirill Morozov <kirill@robotix.pro>
|
" Maintainer: Kirill Morozov <kirill@robotix.pro>
|
||||||
" Based On: https://github.com/gleam-lang/gleam.vim
|
" Based On: https://github.com/gleam-lang/gleam.vim
|
||||||
" Last Change: 2025 Apr 20
|
" Last Change: 2025 Apr 20
|
||||||
|
" 2025 May 15 Add @Spell clusters #17324
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
@ -38,7 +39,7 @@ syntax match gleamNumber "\<-\=0[xX]_\?\%(\x\|\x_\x\)\+\>"
|
|||||||
syntax match gleamFloat "\(0*[1-9][0-9_]*\|0\)\.\(0*[1-9][0-9_]*\|0\)\(e-\=0*[1-9][0-9_]*\)\="
|
syntax match gleamFloat "\(0*[1-9][0-9_]*\|0\)\.\(0*[1-9][0-9_]*\|0\)\(e-\=0*[1-9][0-9_]*\)\="
|
||||||
|
|
||||||
" String
|
" String
|
||||||
syntax region gleamString start=/"/ end=/"/ contains=gleamSpecial
|
syntax region gleamString start=/"/ end=/"/ contains=gleamSpecial,@Spell
|
||||||
syntax match gleamSpecial '\\.' contained
|
syntax match gleamSpecial '\\.' contained
|
||||||
|
|
||||||
" Operators
|
" Operators
|
||||||
@ -58,19 +59,19 @@ syntax match gleamOperator "[<>]=\=\.\=\|[=!]="
|
|||||||
syntax match gleamOperator "\.\.\|<>\||"
|
syntax match gleamOperator "\.\.\|<>\||"
|
||||||
|
|
||||||
" Type
|
" Type
|
||||||
syntax match gleamIdentifier "\<[A-Z][a-zA-Z0-9]*\>"
|
syntax match gleamIdentifier "\<[A-Z][a-zA-Z0-9]*\>" contains=@NoSpell
|
||||||
|
|
||||||
" Attribute
|
" Attribute
|
||||||
syntax match gleamPreProc "@[a-z][a-z_]*"
|
syntax match gleamPreProc "@[a-z][a-z_]*" contains=@NoSpell
|
||||||
|
|
||||||
" Function definition
|
" Function definition
|
||||||
syntax keyword gleamKeyword fn nextgroup=gleamFunction skipwhite skipempty
|
syntax keyword gleamKeyword fn nextgroup=gleamFunction skipwhite skipempty
|
||||||
syntax match gleamFunction "[a-z][a-z0-9_]*\ze\s*(" skipwhite skipnl
|
syntax match gleamFunction "[a-z][a-z0-9_]*\ze\s*(" skipwhite skipnl contains=@NoSpell
|
||||||
|
|
||||||
" Comments
|
" Comments
|
||||||
syntax region gleamComment start="//" end="$" contains=gleamTodo
|
syntax region gleamComment start="//" end="$" contains=gleamTodo,@Spell
|
||||||
syntax region gleamSpecialComment start="///" end="$"
|
syntax region gleamSpecialComment start="///" end="$" contains=@Spell
|
||||||
syntax region gleamSpecialComment start="////" end="$"
|
syntax region gleamSpecialComment start="////" end="$" contains=@Spell
|
||||||
syntax keyword gleamTodo contained TODO FIXME XXX NB NOTE
|
syntax keyword gleamTodo contained TODO FIXME XXX NB NOTE
|
||||||
|
|
||||||
" Highlight groups
|
" Highlight groups
|
||||||
|
Loading…
x
Reference in New Issue
Block a user