0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

runtime(scheme): update runtime files

Add TODO highlighting, disable text-wrapping, add "define-library" to
lispwords on CHICKEN. Update MAINTAINERS.

closes: #15063

Signed-off-by: Evan Hanson <evhan@foldling.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Evan Hanson 2024-06-21 07:37:49 +02:00 committed by Christian Brabandt
parent 6bc11c06d2
commit 17e0a1969d
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
6 changed files with 49 additions and 38 deletions

5
.github/MAINTAINERS vendored
View File

@ -115,6 +115,7 @@ runtime/ftplugin/basic.vim @dkearns
runtime/ftplugin/bst.vim @tpope runtime/ftplugin/bst.vim @tpope
runtime/ftplugin/cfg.vim @chrisbra runtime/ftplugin/cfg.vim @chrisbra
runtime/ftplugin/chatito.vim @ObserverOfTime runtime/ftplugin/chatito.vim @ObserverOfTime
runtime/ftplugin/chicken.vim @evhan
runtime/ftplugin/clojure.vim @axvr runtime/ftplugin/clojure.vim @axvr
runtime/ftplugin/cs.vim @nickspoons runtime/ftplugin/cs.vim @nickspoons
runtime/ftplugin/csh.vim @dkearns runtime/ftplugin/csh.vim @dkearns
@ -222,6 +223,7 @@ runtime/ftplugin/ruby.vim @tpope @dkearns
runtime/ftplugin/rust.vim @lilyball runtime/ftplugin/rust.vim @lilyball
runtime/ftplugin/sass.vim @tpope runtime/ftplugin/sass.vim @tpope
runtime/ftplugin/scala.vim @derekwyatt runtime/ftplugin/scala.vim @derekwyatt
runtime/ftplugin/scheme.vim @evhan
runtime/ftplugin/scss.vim @tpope runtime/ftplugin/scss.vim @tpope
runtime/ftplugin/sdoc.vim @gpanders runtime/ftplugin/sdoc.vim @gpanders
runtime/ftplugin/sed.vim @dkearns runtime/ftplugin/sed.vim @dkearns
@ -322,6 +324,7 @@ runtime/indent/readline.vim @dkearns
runtime/indent/ruby.vim @AndrewRadev @dkearns runtime/indent/ruby.vim @AndrewRadev @dkearns
runtime/indent/sass.vim @tpope runtime/indent/sass.vim @tpope
runtime/indent/scala.vim @derekwyatt runtime/indent/scala.vim @derekwyatt
runtime/indent/scheme.vim @evhan
runtime/indent/scss.vim @tpope runtime/indent/scss.vim @tpope
runtime/indent/sh.vim @chrisbra runtime/indent/sh.vim @chrisbra
runtime/indent/solidity.vim @cothi runtime/indent/solidity.vim @cothi
@ -368,6 +371,7 @@ runtime/syntax/cabalconfig.vim @coot
runtime/syntax/cabalproject.vim @coot runtime/syntax/cabalproject.vim @coot
runtime/syntax/cf.vim @ernstvanderlinden runtime/syntax/cf.vim @ernstvanderlinden
runtime/syntax/chatito.vim @ObserverOfTime runtime/syntax/chatito.vim @ObserverOfTime
runtime/syntax/chicken.vim @evhan
runtime/syntax/chuck.vim @gacallea runtime/syntax/chuck.vim @gacallea
runtime/syntax/clojure.vim @axvr runtime/syntax/clojure.vim @axvr
runtime/syntax/cs.vim @nickspoons runtime/syntax/cs.vim @nickspoons
@ -502,6 +506,7 @@ runtime/syntax/rst.vim @marshallward
runtime/syntax/ruby.vim @dkearns runtime/syntax/ruby.vim @dkearns
runtime/syntax/sass.vim @tpope runtime/syntax/sass.vim @tpope
runtime/syntax/scala.vim @derekwyatt runtime/syntax/scala.vim @derekwyatt
runtime/syntax/scheme.vim @evhan
runtime/syntax/scss.vim @tpope runtime/syntax/scss.vim @tpope
runtime/syntax/sdoc.vim @gpanders runtime/syntax/sdoc.vim @gpanders
runtime/syntax/sed.vim @dkearns runtime/syntax/sed.vim @dkearns

View File

@ -1,12 +1,12 @@
" CHICKEN-specific Vim customizations " CHICKEN-specific Vim customizations
" Last Change: 2018-03-05 " Last Change: 2024 Jun 21
" Author: Evan Hanson <evhan@foldling.org> " Author: Evan Hanson <evhan@foldling.org>
" Maintainer: Evan Hanson <evhan@foldling.org> " Maintainer: Evan Hanson <evhan@foldling.org>
" Repository: https://git.foldling.org/vim-scheme.git " Repository: https://git.foldling.org/vim-scheme.git
" URL: https://foldling.org/vim/ftplugin/chicken.vim " URL: https://foldling.org/vim/ftplugin/chicken.vim
" Notes: These are supplemental settings, to be loaded after the core " Notes: These are supplemental settings, to be loaded after the
" Scheme ftplugin file (ftplugin/scheme.vim). Enable it by setting " core Scheme ftplugin file (ftplugin/scheme.vim). Enable
" b:is_chicken=1 and filetype=scheme. " it by setting b:is_chicken=1 and filetype=scheme.
if !exists('b:did_scheme_ftplugin') if !exists('b:did_scheme_ftplugin')
finish finish

View File

@ -1,12 +1,12 @@
" Vim filetype plugin file " Vim filetype plugin file
" Language: Scheme (R7RS) " Language: Scheme (R7RS)
" Last Change: 2019 Nov 19 " Last Change: 2024 Jun 21
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring') " 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
" Author: Evan Hanson <evhan@foldling.org> " Author: Evan Hanson <evhan@foldling.org>
" Maintainer: Evan Hanson <evhan@foldling.org> " Maintainer: Evan Hanson <evhan@foldling.org>
" Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com> " Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
" Repository: https://git.foldling.org/vim-scheme.git " Repository: https://git.foldling.org/vim-scheme.git
" URL: https://foldling.org/vim/ftplugin/scheme.vim " URL: https://foldling.org/vim/ftplugin/scheme.vim
if exists('b:did_ftplugin') if exists('b:did_ftplugin')
finish finish
@ -20,11 +20,13 @@ setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|#
setl commentstring=;\ %s setl commentstring=;\ %s
setl define=^\\s*(def\\k* setl define=^\\s*(def\\k*
setl iskeyword=33,35-39,42-43,45-58,60-90,94,95,97-122,126 setl iskeyword=33,35-39,42-43,45-58,60-90,94,95,97-122,126
setl formatoptions-=t
let b:undo_ftplugin = 'setl lisp< comments< commentstring< define< iskeyword<' let b:undo_ftplugin = 'setl lisp< comments< commentstring< define< iskeyword< formatoptions<'
setl lispwords+=case setl lispwords+=case
setl lispwords+=define setl lispwords+=define
setl lispwords+=define-library
setl lispwords+=define-record-type setl lispwords+=define-record-type
setl lispwords+=define-syntax setl lispwords+=define-syntax
setl lispwords+=define-values setl lispwords+=define-values

View File

@ -1,9 +1,10 @@
" Vim indent file " Vim indent file
" Language: Scheme " Language: Scheme
" Last Change: 2018 Jan 31 " Last Change: 2024 Jun 21
" Maintainer: Evan Hanson <evhan@foldling.org> " Maintainer: Evan Hanson <evhan@foldling.org>
" Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com> " Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
" URL: https://foldling.org/vim/indent/scheme.vim " Repository: https://git.foldling.org/vim-scheme.git
" URL: https://foldling.org/vim/indent/scheme.vim
" Only load this indent file when no other was loaded. " Only load this indent file when no other was loaded.
if exists("b:did_indent") if exists("b:did_indent")

View File

@ -1,13 +1,13 @@
" Vim syntax file " Vim syntax file
" Language: Scheme (CHICKEN) " Language: Scheme (CHICKEN)
" Last Change: 2021 Oct 01 " Last Change: 2024 Jun 21
" Author: Evan Hanson <evhan@foldling.org> " Author: Evan Hanson <evhan@foldling.org>
" Maintainer: Evan Hanson <evhan@foldling.org> " Maintainer: Evan Hanson <evhan@foldling.org>
" Repository: https://git.foldling.org/vim-scheme.git " Repository: https://git.foldling.org/vim-scheme.git
" URL: https://foldling.org/vim/syntax/chicken.vim " URL: https://foldling.org/vim/syntax/chicken.vim
" Notes: This is supplemental syntax, to be loaded after the core Scheme " Notes: This is supplemental syntax, to be loaded after the core
" syntax file (syntax/scheme.vim). Enable it by setting b:is_chicken=1 " Scheme syntax file (syntax/scheme.vim). Enable it by
" and filetype=scheme. " setting b:is_chicken=1 and filetype=scheme.
" Only to be used on top of the Scheme syntax. " Only to be used on top of the Scheme syntax.
if !exists('b:did_scheme_syntax') if !exists('b:did_scheme_syntax')

View File

@ -1,12 +1,12 @@
" Vim syntax file " Vim syntax file
" Language: Scheme (R7RS) " Language: Scheme (R7RS)
" Last Change: 2021-01-03 " Last Change: 2024 Jun 21
" Author: Evan Hanson <evhan@foldling.org> " Author: Evan Hanson <evhan@foldling.org>
" Maintainer: Evan Hanson <evhan@foldling.org> " Maintainer: Evan Hanson <evhan@foldling.org>
" Previous Author: Dirk van Deun <dirk@igwe.vub.ac.be> " Previous Author: Dirk van Deun <dirk@igwe.vub.ac.be>
" Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com> " Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
" Repository: https://git.foldling.org/vim-scheme.git " Repository: https://git.foldling.org/vim-scheme.git
" URL: https://foldling.org/vim/syntax/scheme.vim " URL: https://foldling.org/vim/syntax/scheme.vim
if exists('b:current_syntax') if exists('b:current_syntax')
finish finish
@ -50,9 +50,11 @@ syn match schemeBoolean /#f\(alse\)\?/
syn match schemeCharacter /#\\.[^ `'\t\n\[\]()]*/ syn match schemeCharacter /#\\.[^ `'\t\n\[\]()]*/
syn match schemeCharacter /#\\x[0-9a-fA-F]\+/ syn match schemeCharacter /#\\x[0-9a-fA-F]\+/
syn match schemeComment /;.*$/ contains=@Spell syn match schemeComment /;.*$/ contains=schemeTodo,@Spell
syn region schemeMultilineComment start=/#|/ end=/|#/ contains=schemeMultilineComment,@Spell syn region schemeMultilineComment start=/#|/ end=/|#/ contains=schemeTodo,schemeMultilineComment,@Spell
syn match schemeTodo /\c\<\(todo\|xxx\|fixme\|note\):\?\>/ contained
syn region schemeForm matchgroup=schemeParentheses start="(" end=")" contains=ALLBUT,schemeUnquote,schemeDatumCommentForm,@schemeImportCluster syn region schemeForm matchgroup=schemeParentheses start="(" end=")" contains=ALLBUT,schemeUnquote,schemeDatumCommentForm,@schemeImportCluster
syn region schemeForm matchgroup=schemeParentheses start="\[" end="\]" contains=ALLBUT,schemeUnquote,schemeDatumCommentForm,@schemeImportCluster syn region schemeForm matchgroup=schemeParentheses start="\[" end="\]" contains=ALLBUT,schemeUnquote,schemeDatumCommentForm,@schemeImportCluster
@ -427,6 +429,7 @@ syn keyword schemeFunction write-string
syn keyword schemeFunction write-u8 syn keyword schemeFunction write-u8
syn keyword schemeFunction zero? syn keyword schemeFunction zero?
hi def link schemeTodo Todo
hi def link schemeBoolean Boolean hi def link schemeBoolean Boolean
hi def link schemeCharacter Character hi def link schemeCharacter Character
hi def link schemeComment Comment hi def link schemeComment Comment