runtime(gleam): add @Spell clusters to syntax script
Commit:
https://github.com/vim/vim/commit/6451e5f51763db085a784925a4a4f7b92e70b7cf
Author: Kat <[email protected]>
Date: Thu May 15 20:10:48 2025 +0200
runtime(gleam): add @Spell clusters to syntax script
closes: https://github.com/vim/vim/issues/17324
Signed-off-by: Kat <[email protected]>
Signed-off-by: Kirill Morozov <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/syntax/gleam.vim b/runtime/syntax/gleam.vim
index 6c2bab7ba..e89ab564e 100644
--- a/runtime/syntax/gleam.vim
+++ b/runtime/syntax/gleam.vim
@@ -3,6 +3,7 @@
" Maintainer: Kirill Morozov <[email protected]>
" Based On: https://github.com/gleam-lang/gleam.vim
" Last Change: 2025 Apr 20
+" 2025 May 15 Add @Spell clusters #17324
if exists("b:current_syntax")
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_]*\)\="
" String
-syntax region gleamString start=/"/ end=/"/ contains=gleamSpecial
+syntax region gleamString start=/"/ end=/"/ contains=gleamSpecial,@Spell
syntax match gleamSpecial '\.' contained
" Operators
@@ -58,19 +59,19 @@ syntax match gleamOperator "[<>]=\=\.\=\|[=!]="
syntax match gleamOperator "\.\.\|<>\||"
" Type
-syntax match gleamIdentifier "\<[A-Z][a-zA-Z0-9]*\>"
+syntax match gleamIdentifier "\<[A-Z][a-zA-Z0-9]*\>" contains=@NoSpell
" Attribute
-syntax match gleamPreProc "@[a-z][a-z_]*"
+syntax match gleamPreProc "@[a-z][a-z_]*" contains=@NoSpell
" Function definition
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
-syntax region gleamComment start="//" end="$" contains=gleamTodo
-syntax region gleamSpecialComment start="///" end="$"
-syntax region gleamSpecialComment start="////" end="$"
+syntax region gleamComment start="//" end="$" contains=gleamTodo,@Spell
+syntax region gleamSpecialComment start="///" end="$" contains=@Spell
+syntax region gleamSpecialComment start="////" end="$" contains=@Spell
syntax keyword gleamTodo contained TODO FIXME XXX NB NOTE
" Highlight groups
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uFd6r-00CYXt-Fc%40256bit.org.