runtime(typst): add definition lists to formatlistpat, update maintainer
Commit:
https://github.com/vim/vim/commit/b66cac1a8ed8636a38e867226f5bb621c96ff322
Author: Luca Saccarola <[email protected]>
Date: Mon Dec 9 20:29:14 2024 +0100
runtime(typst): add definition lists to formatlistpat, update maintainer
closes: https://github.com/vim/vim/issues/16192
Signed-off-by: Luca Saccarola <[email protected]>
Signed-off-by: Gregory Anders <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index 9e1ddb425..28b754bbc 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -19,7 +19,7 @@ runtime/autoload/modula2.vim @dkearns
runtime/autoload/php.vim @david-szabo97
runtime/autoload/rubycomplete.vim @segfault @dkearns
runtime/autoload/rust.vim @lilyball
-runtime/autoload/typst.vim @gpanders
+runtime/autoload/typst.vim @saccarosium
runtime/autoload/xmlformat.vim @chrisbra
runtime/autoload/dist/json.vim @habamax
runtime/colors/blue.vim @habamax @romainl @neutaaaaan
@@ -104,7 +104,7 @@ runtime/compiler/tidy.vim @dkearns
runtime/compiler/ts-node.vim @dkearns
runtime/compiler/tsc.vim @dkearns
runtime/compiler/typedoc.vim @dkearns
-runtime/compiler/typst.vim @gpanders
+runtime/compiler/typst.vim @saccarosium
runtime/compiler/xmllint.vim @dkearns
runtime/compiler/xo.vim @dkearns
runtime/compiler/yamllint.vim @romainl
@@ -297,7 +297,7 @@ runtime/ftplugin/toml.vim @averms
runtime/ftplugin/tt2html.vim @petdance
runtime/ftplugin/typescript.vim @dkearns
runtime/ftplugin/typescriptreact.vim @dkearns
-runtime/ftplugin/typst.vim @gpanders
+runtime/ftplugin/typst.vim @saccarosium
runtime/ftplugin/unison.vim @chuwy
runtime/ftplugin/v.vim @ribru17
runtime/ftplugin/vdf.vim @ObserverOfTime
@@ -390,7 +390,7 @@ runtime/indent/teraterm.vim @k-takata
runtime/indent/terraform.vim @gpanders
runtime/indent/thrift.vim @jiangyinzuo
runtime/indent/typescript.vim @HerringtonDarkholme
-runtime/indent/typst.vim @gpanders
+runtime/indent/typst.vim @saccarosium
runtime/indent/vroom.vim @dbarnett
runtime/indent/wast.vim @rhysd
runtime/indent/xml.vim @chrisbra
diff --git a/runtime/autoload/typst.vim b/runtime/autoload/typst.vim
index 6d097dd92..362da3f45 100644
--- a/runtime/autoload/typst.vim
+++ b/runtime/autoload/typst.vim
@@ -1,6 +1,7 @@
" Language: Typst
-" Maintainer: Gregory Anders
-" Last Change: 2024 Nov 02
+" Previous Maintainer: Gregory Anders
+" Maintainer: Luca Saccarola <[email protected]>
+" Last Change: 2024 Dec 09
" Based on: https://github.com/kaarmu/typst.vim
function! typst#indentexpr() abort
diff --git a/runtime/compiler/typst.vim b/runtime/compiler/typst.vim
index 33e55818e..13699f467 100644
--- a/runtime/compiler/typst.vim
+++ b/runtime/compiler/typst.vim
@@ -1,7 +1,8 @@
" Vim compiler file
" Language: Typst
-" Maintainer: Gregory Anders
-" Last Change: 2024-07-14
+" Previous Maintainer: Gregory Anders
+" Maintainer: Luca Saccarola <[email protected]>
+" Last Change: 2024 Dec 09
" Based on: https://github.com/kaarmu/typst.vim
if exists('current_compiler')
diff --git a/runtime/ftplugin/typst.vim b/runtime/ftplugin/typst.vim
index 09b65d0e5..08929bbdb 100644
--- a/runtime/ftplugin/typst.vim
+++ b/runtime/ftplugin/typst.vim
@@ -1,7 +1,8 @@
" Vim filetype plugin file
" Language: Typst
-" Maintainer: Gregory Anders
-" Last Change: 2024 Dev 01
+" Previous Maintainer: Gregory Anders
+" Maintainer: Luca Saccarola <[email protected]>
+" Last Change: 2024 Dec 09
" Based on: https://github.com/kaarmu/typst.vim
if exists('b:did_ftplugin')
@@ -12,8 +13,10 @@ let b:did_ftplugin = 1
setlocal commentstring=//\ %s
setlocal comments=s1:/*,mb:*,ex:*/,://
setlocal formatoptions+=croqn
+" Numbered Lists
setlocal formatlistpat=^\s*\d\+[\]:.)}\t\ ]\s*
-setlocal formatlistpat+=\\|^\s*[-+\]\s\+
+" Unordered (-), Ordered (+) and definition (/) Lists
+setlocal formatlistpat+=\\|^\s*[-+/\]\s\+
setlocal suffixesadd=.typ
let b:undo_ftplugin = 'setl cms< com< fo< flp< sua<'
diff --git a/runtime/indent/typst.vim b/runtime/indent/typst.vim
index 6aaa04a53..c990b968c 100644
--- a/runtime/indent/typst.vim
+++ b/runtime/indent/typst.vim
@@ -1,7 +1,8 @@
" Vim indent file
" Language: Typst
-" Maintainer: Gregory Anders <[email protected]>
-" Last Change: 2024-07-14
+" Previous Maintainer: Gregory Anders
+" Maintainer: Luca Saccarola <[email protected]>
+" Last Change: 2024 Dec 09
" Based on: https://github.com/kaarmu/typst.vim
if exists('b:did_indent')
diff --git a/runtime/syntax/typst.vim b/runtime/syntax/typst.vim
index dae142478..b1f05ec85 100644
--- a/runtime/syntax/typst.vim
+++ b/runtime/syntax/typst.vim
@@ -1,7 +1,8 @@
" Vim syntax file
" Language: Typst
-" Maintainer: Gregory Anders <[email protected]>
-" Last Change: 2024 Nov 02
+" Previous Maintainer: Gregory Anders
+" Maintainer: Luca Saccarola <[email protected]>
+" Last Change: 2024 Dec 09
" Based on: https://github.com/kaarmu/typst.vim
if exists('b:current_syntax')
--
--
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/E1tKjgk-002fdt-Si%40256bit.org.