runtime(typst): Add typst runtime files
closes: #15234
Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt
index 910731a..a342ba4 100644
--- a/runtime/doc/filetype.txt
+++ b/runtime/doc/filetype.txt
@@ -1,4 +1,4 @@
-*filetype.txt* For Vim version 9.1. Last change: 2024 May 23
+*filetype.txt* For Vim version 9.1. Last change: 2024 Jul 15
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -886,6 +886,10 @@
let g:tex_flavor = "latex"
Currently no other formats are recognized.
+TYPST *ft-typst-plugin*
+
+ *g:typst_conceal*
+When |TRUE| the Typst filetype plugin will set the 'conceallevel' option to 2.
VIM *ft-vim-plugin*
diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt
index e2aef24..ed99978 100644
--- a/runtime/doc/quickfix.txt
+++ b/runtime/doc/quickfix.txt
@@ -1,4 +1,4 @@
-*quickfix.txt* For Vim version 9.1. Last change: 2024 Jun 16
+*quickfix.txt* For Vim version 9.1. Last change: 2024 Jul 15
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1414,6 +1414,17 @@
if any. If your TeX doesn't support "-interaction=nonstopmode", please
report it with different means to express \nonstopmode from the command line.
+TYPST COMPILER *compiler-typst*
+
+Vim includes a compiler plugin for Typst files. This compiler is enabled
+automatically in Typst buffers by the Typst filetype plugin |ft-typst-plugin|.
+Run |:make| to compile the current Typst file.
+
+ *g:typst_cmd*
+By default Vim will use "typst" as the command to run the Typst compiler. This
+can be changed by setting the |g:typst_cmd| variable: >
+ let g:typst_cmd = "/path/to/other/command"
+
=============================================================================
7. The error format *error-file-format*
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 3cb97f3..d96cc67 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1,4 +1,4 @@
-*syntax.txt* For Vim version 9.1. Last change: 2024 Jul 08
+*syntax.txt* For Vim version 9.1. Last change: 2024 Jul 15
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3810,6 +3810,15 @@
<
The default value is 1.
+TYPST *ft-typst-syntax*
+
+ *g:typst_embedded_languages*
+Typst files can embed syntax highlighting for other languages by setting the
+|g:typst_embedded_languages| variable. This variable is a list of language
+names whose syntax definitions will be included in Typst files. Example: >
+
+ let g:typst_embedded_languages = ['python', 'r']
+
VIM *vim.vim* *ft-vim-syntax*
*g:vimsyn_minlines* *g:vimsyn_maxlines*
There is a trade-off between more accurate syntax highlighting versus screen
diff --git a/runtime/doc/tags b/runtime/doc/tags
index 00c216c..13dd7a3 100644
--- a/runtime/doc/tags
+++ b/runtime/doc/tags
@@ -6550,6 +6550,7 @@
compiler-pyunit quickfix.txt /*compiler-pyunit*
compiler-select quickfix.txt /*compiler-select*
compiler-tex quickfix.txt /*compiler-tex*
+compiler-typst quickfix.txt /*compiler-typst*
compiler-vaxada ft_ada.txt /*compiler-vaxada*
compl-current insert.txt /*compl-current*
compl-define insert.txt /*compl-define*
@@ -7410,6 +7411,8 @@
ft-tf-syntax syntax.txt /*ft-tf-syntax*
ft-typescript-syntax syntax.txt /*ft-typescript-syntax*
ft-typescriptreact-syntax syntax.txt /*ft-typescriptreact-syntax*
+ft-typst-plugin filetype.txt /*ft-typst-plugin*
+ft-typst-syntax syntax.txt /*ft-typst-syntax*
ft-vb-syntax syntax.txt /*ft-vb-syntax*
ft-verilog-indent indent.txt /*ft-verilog-indent*
ft-vhdl-indent indent.txt /*ft-vhdl-indent*
@@ -7718,6 +7721,9 @@
g:tex_superscripts syntax.txt /*g:tex_superscripts*
g:tex_verbspell syntax.txt /*g:tex_verbspell*
g:typescript_host_keyword syntax.txt /*g:typescript_host_keyword*
+g:typst_cmd quickfix.txt /*g:typst_cmd*
+g:typst_conceal filetype.txt /*g:typst_conceal*
+g:typst_embedded_languages syntax.txt /*g:typst_embedded_languages*
g:var eval.txt /*g:var*
g:vim_indent indent.txt /*g:vim_indent*
g:vim_indent_cont indent.txt /*g:vim_indent_cont*