mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:6451e5f: runtime(gleam): add @Spell clusters to syntax script
closes: vim/vim#17324
6451e5f517
Co-authored-by: Kat <65649991+00-kat@users.noreply.github.com>
This commit is contained in:

committed by
Christian Clason

parent
469541c415
commit
1be2fdb910
@@ -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
|
||||||
|
Reference in New Issue
Block a user