summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-12-08 03:02:19 +0000
committerNorbert Preining <norbert@preining.info>2022-12-08 03:02:19 +0000
commit3fa962623959b4028935cb5201f44840c27980e8 (patch)
tree75285a7a92d4052ed289728c74ccf622b02530fb /support
parent03b9a93a133d854a3f7a8043984aded34728edf6 (diff)
CTAN sync 202212080302
Diffstat (limited to 'support')
-rw-r--r--support/digestif/LICENSE152
-rw-r--r--support/digestif/LICENSE.md243
-rw-r--r--support/digestif/README.md15
-rwxr-xr-xsupport/digestif/bin/digestif.texlua2
-rw-r--r--support/digestif/data/amsrefs.sty.tags4
-rw-r--r--support/digestif/data/amssymb.sty.tags5
-rw-r--r--support/digestif/data/biblatex.sty.tags4
-rw-r--r--support/digestif/data/csquotes.sty.tags4
-rw-r--r--support/digestif/data/etoolbox.sty.tags4
-rw-r--r--support/digestif/data/latex.tags6
-rw-r--r--support/digestif/data/pgf.tags2
-rw-r--r--support/digestif/data/plain.tags2
-rw-r--r--support/digestif/data/primitives.tags2
-rw-r--r--support/digestif/data/teximpatient.tags2
-rw-r--r--support/digestif/data/texinfo.tags2
-rw-r--r--support/digestif/data/tikz.tags2
-rw-r--r--support/digestif/data/unicode-math.sty.tags5
-rw-r--r--support/digestif/digestif/config.lua2
-rw-r--r--support/digestif/digestif/langserver.lua17
19 files changed, 284 insertions, 191 deletions
diff --git a/support/digestif/LICENSE b/support/digestif/LICENSE
deleted file mode 100644
index b1f2360edc..0000000000
--- a/support/digestif/LICENSE
+++ /dev/null
@@ -1,152 +0,0 @@
-With the exception of the files individually listed below, the
-following applies:
-
-Copyright 2018-2022 Augusto Stoffel
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or (at
-your option) any later version.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <https://www.gnu.org/licenses/>.
-
----
-
-amsrefs.sty.tags:
-
- Copyright 2001-2004, 2007, 2008, 2010-2013 American Mathematical Society
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: LPPL-1.3c+
-
- Adapted from the amsrefs package documentation, which can be found
- at https://ctan.org/pkg/amsrefs.
-
-amssymb.sty.tags:
-
- Copyright 2006-2019 Will Robertson
- Copyright 2010-2017 Philipp Stephani
- Copyright 2011-2017 Joseph Wright
- Copyright 2012-2015 Khaled Hosny
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: LPPL-1.3c+
-
- Adapted from the file unicode-math-table.tex, part of the
- unicode-math package, which can be found at
- https://ctan.org/pkg/unicode-math.
-
-biblatex.sty.tags:
-
- Copyright 2006-2012 Philipp Lehman
- Copyright 2012-2022 Philipp Lehman, Joseph Wright, Audrey Boruvka,
- Philip Kime
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: LPPL-1.3c
-
- Adapted from the biblatex package documentation, which can be found
- at https://github.com/plk/biblatex.
-
-csquotes.sty.tags:
-
- Copyright 2003-2011 Philipp Lehman
- Copyright 2015-2019, 2021, 2022 Joseph Wright
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: LPPL-1.3c+
-
- Adapted from the csquotes package documentation, which can be found
- at https://ctan.org/pkg/csquotes.
-
-etoolbox.sty.tags:
-
- Copyright 2007-2011 Philipp Lehman
- Copyright 2015-2020 Joseph Wright
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: LPPL-1.3c+
-
- Adapted form the etoolbox package documentation, which can be found
- at https://ctan.org/pkg/etoolbox.
-
-latex.tags:
-
- Copyright 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015,
- 2016, 2017, 2018, 2019, 2020, 2021, 2022 Karl Berry
- Copyright 1988, 1994, 2007 Stephen Gilmore
- Copyright 1994, 1995, 1996 Torsten Martinsen
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: GFDL
-
- Adapted from the LaTeX2e Unofficial Reference Manual, which can be
- found at https://latexref.xyz/.
-
-pgf.tags:
-
- Copyright 2007-2013 Till Tantau
- Copyright 2022 Augusto Stoffel, Jens Schneider
- SPDX-License-Identifier: GFDL-1.2-or-later or LPPL-1.3c+
-
- Adapted from the PGF manual, version 3.1.9a, which can be found at
- https://github.com/pgf-tikz/pgf/.
-
-plain.tags:
-
- Copyright 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: GFDL-1.3-only
-
- Adapted from the book TeX for the Impatient, which can be found at
- https://www.gnu.org/software/teximpatient.
-
-primitives.tags:
-
- Copyright 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: GFDL-1.3-only
-
- Adapted from the book TeX for the Impatient, which can be found at
- https://www.gnu.org/software/teximpatient.
-
-teximpatient.tags:
-
- Copyright 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: GFDL-1.3-only
-
- Adapted from the book TeX for the Impatient, which can be found at
- https://www.gnu.org/software/teximpatient.
-
-texinfo.tags:
-
- Copyright 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
- Copyright 2019 Augusto Stoffel
- SPDX-License-Identifier: GFDL-1.3-only
-
- Adapted from the GNU Texinfo manual, which can be found at
- https://www.gnu.org/software/texinfo/manual/texinfo/.
-
-tikz.tags:
-
- Copyright 2007-2013 Till Tantau
- Copyright 2022 Augusto Stoffel, Jens Schneider
- SPDX-License-Identifier: GFDL-1.2-or-later or LPPL-1.3c+
-
- Adapted from the PGF manual, version 3.1.9a, which can be found at
- https://github.com/pgf-tikz/pgf/.
-
-unicode-math.sty.tags:
-
- Copyright 2006-2019 Will Robertson
- Copyright 2010-2017 Philipp Stephani
- Copyright 2011-2017 Joseph Wright
- Copyright 2012-2015 Khaled Hosny
- Copyright 2022 Augusto Stoffel
- SPDX-License-Identifier: LPPL-1.3c+
-
- Adapted from the file unicode-math-table.tex, part of
- the unicode-math package, which can be found at
- https://github.com/wspr/unicode-math/
-
diff --git a/support/digestif/LICENSE.md b/support/digestif/LICENSE.md
new file mode 100644
index 0000000000..55165a272d
--- /dev/null
+++ b/support/digestif/LICENSE.md
@@ -0,0 +1,243 @@
+With the exception of the files individually listed below, the following
+applies:
+
+ Copyright 2018-2022 Augusto Stoffel
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or (at
+ your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+---
+
+amsrefs.sty.tags:
+
+ Copyright 2001-2004, 2007, 2008, 2010-2013 American Mathematical Society
+ Copyright 2022 Augusto Stoffel
+
+ This file may be distributed and/or modified under the conditions of the
+ LaTeX Project Public License, either version 1.3 of this license or (at
+ your option) any later version. The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+ and version 1.3 or later is part of all distributions of LaTeX version
+ 2005/12/01 or later.
+
+ Adapted from the amsrefs package documentation, which can be found at
+ https://ctan.org/pkg/amsrefs.
+
+amssymb.sty.tags:
+
+ Copyright 2006-2019 Will Robertson
+ Copyright 2010-2017 Philipp Stephani
+ Copyright 2011-2017 Joseph Wright
+ Copyright 2012-2015 Khaled Hosny
+ Copyright 2022 Augusto Stoffel
+
+ This file may be distributed and/or modified under the conditions of the
+ LaTeX Project Public License, either version 1.3 of this license or (at
+ your option) any later version. The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+ and version 1.3 or later is part of all distributions of LaTeX version
+ 2005/12/01 or later.
+
+ Adapted from the file unicode-math-table.tex, part of the unicode-math
+ package, which can be found at https://ctan.org/pkg/unicode-math.
+
+biblatex.sty.tags:
+
+ Copyright 2006-2012 Philipp Lehman
+ Copyright 2012-2022 Philipp Lehman, Joseph Wright, Audrey Boruvka,
+ Philip Kime
+ Copyright 2022 Augusto Stoffel
+
+ Permission is granted to copy, distribute and/or modify this software under
+ the terms of the LaTeX Project Public License (LPPL), version 1.3.
+
+ Adapted from the biblatex package documentation, which can be found at
+ https://ctan.org/pkg/biblatex.
+
+csquotes.sty.tags:
+
+ Copyright 2003-2011 Philipp Lehman
+ Copyright 2015-2019, 2021, 2022 Joseph Wright
+ Copyright 2022 Augusto Stoffel
+
+ This file may be distributed and/or modified under the conditions of the
+ LaTeX Project Public License, either version 1.3 of this license or (at
+ your option) any later version. The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+ and version 1.3 or later is part of all distributions of LaTeX version
+ 2005/12/01 or later.
+
+ Adapted from the csquotes package documentation, which can be found at
+ https://ctan.org/pkg/csquotes.
+
+etoolbox.sty.tags:
+
+ Copyright 2007-2011 Philipp Lehman
+ Copyright 2015-2020 Joseph Wright
+ Copyright 2022 Augusto Stoffel
+
+ This file may be distributed and/or modified under the conditions of the
+ LaTeX Project Public License, either version 1.3 of this license or (at
+ your option) any later version. The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+ and version 1.3 or later is part of all distributions of LaTeX version
+ 2005/12/01 or later.
+
+ Adapted form the etoolbox package documentation, which can be found at
+ https://ctan.org/pkg/etoolbox.
+
+latex.tags:
+
+ Copyright 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015,
+ 2016, 2017, 2018, 2019, 2020, 2021, 2022 Karl Berry
+ Copyright 1988, 1994, 2007 Stephen Gilmore
+ Copyright 1994, 1995, 1996 Torsten Martinsen
+ Copyright 2022 Augusto Stoffel
+
+ Permission is granted to make and distribute verbatim copies of this manual
+ provided the copyright notice and this permission notice are preserved on
+ all copies.
+
+ Permission is granted to copy and distribute modified versions of this
+ manual under the conditions for verbatim copying, provided that the entire
+ resulting derived work is distributed under the terms of a permission
+ notice identical to this one.
+
+ Permission is granted to copy and distribute translations of this manual
+ into another language, under the above conditions for modified versions.
+
+ Adapted from the LaTeX2e Unofficial Reference Manual, which can be found at
+ https://latexref.xyz/.
+
+pgf.tags:
+
+ Copyright 2007-2013 Till Tantau
+ Copyright 2022 Augusto Stoffel, Jens Schneider
+
+ Permission is granted to copy, distribute and/or modify this document under
+ the terms of the GNU Free Documentation License, Version 1.2 or any later
+ version published by the Free Software Foundation; with no Invariant
+ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the
+ license is included in the section entitled "GNU Free Documentation
+ License".
+
+ This file may be distributed and/or modified under the conditions of the
+ LaTeX Project Public License, either version 1.3 of this license or (at
+ your option) any later version. The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+ and version 1.3 or later is part of all distributions of LaTeX version
+ 2005/12/01 or later.
+
+ Adapted from the PGF manual, version 3.1.9a, which can be found at
+ https://ctan.org/pkg/pgf.
+
+plain.tags:
+
+ Copyright 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry
+ Copyright 2022 Augusto Stoffel
+
+ Permission is granted to copy, distribute and/or modify this document under
+ the terms of the GNU Free Documentation License, Version 1.3 or any later
+ version published by the Free Software Foundation; with no Invariant
+ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the
+ license is included in the section entitled "GNU Free Documentation
+ License".
+
+ Adapted from the book TeX for the Impatient, which can be found at
+ https://www.gnu.org/software/teximpatient.
+
+primitives.tags:
+
+ Copyright 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry
+ Copyright 2022 Augusto Stoffel
+
+ Permission is granted to copy, distribute and/or modify this document under
+ the terms of the GNU Free Documentation License, Version 1.3 or any later
+ version published by the Free Software Foundation; with no Invariant
+ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the
+ license is included in the section entitled "GNU Free Documentation
+ License".
+
+ Adapted from the book TeX for the Impatient, which can be found at
+ https://www.gnu.org/software/teximpatient.
+
+teximpatient.tags:
+
+ Copyright 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry
+ Copyright 2022 Augusto Stoffel
+
+ Permission is granted to copy, distribute and/or modify this document under
+ the terms of the GNU Free Documentation License, Version 1.3 or any later
+ version published by the Free Software Foundation; with no Invariant
+ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the
+ license is included in the section entitled "GNU Free Documentation
+ License".
+
+ Adapted from the book TeX for the Impatient, which can be found at
+ https://www.gnu.org/software/teximpatient.
+
+texinfo.tags:
+
+ Copyright 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
+ Copyright 2019 Augusto Stoffel
+
+ Permission is granted to copy, distribute and/or modify this document under
+ the terms of the GNU Free Documentation License, Version 1.3 or any later
+ version published by the Free Software Foundation; with no Invariant
+ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the
+ license is included in the section entitled "GNU Free Documentation
+ License".
+
+ Adapted from the GNU Texinfo manual, which can be found at
+ https://www.gnu.org/software/texinfo/manual/texinfo/.
+
+tikz.tags:
+
+ Copyright 2007-2013 Till Tantau
+ Copyright 2022 Augusto Stoffel, Jens Schneider
+
+ Permission is granted to copy, distribute and/or modify this document under
+ the terms of the GNU Free Documentation License, Version 1.2 or any later
+ version published by the Free Software Foundation; with no Invariant
+ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the
+ license is included in the section entitled "GNU Free Documentation
+ License".
+
+ This file may be distributed and/or modified under the conditions of the
+ LaTeX Project Public License, either version 1.3 of this license or (at
+ your option) any later version. The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+ and version 1.3 or later is part of all distributions of LaTeX version
+ 2005/12/01 or later.
+
+ Adapted from the PGF manual, version 3.1.9a, which can be found at
+ https://ctan.org/pkg/pgf.
+
+unicode-math.sty.tags:
+
+ Copyright 2006-2019 Will Robertson
+ Copyright 2010-2017 Philipp Stephani
+ Copyright 2011-2017 Joseph Wright
+ Copyright 2012-2015 Khaled Hosny
+ Copyright 2022 Augusto Stoffel
+
+ This file may be distributed and/or modified under the conditions of the
+ LaTeX Project Public License, either version 1.3 of this license or (at
+ your option) any later version. The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+ and version 1.3 or later is part of all distributions of LaTeX version
+ 2005/12/01 or later.
+
+ Adapted from the file unicode-math-table.tex, part of the unicode-math
+ package, which can be found at https://ctan.org/pkg/unicode-math.
+
diff --git a/support/digestif/README.md b/support/digestif/README.md
index c489d4fa6c..a7528020ec 100644
--- a/support/digestif/README.md
+++ b/support/digestif/README.md
@@ -2,8 +2,9 @@ Digestif
========
<p align="center">
-<a href="https://luarocks.org/modules/astoff/digestif"><img src="https://img.shields.io/luarocks/v/astoff/digestif.svg" alt="LuaRocks" /></a>
-<a href="https://app.travis-ci.com/astoff/digestif"><img src="https://app.travis-ci.com/astoff/digestif.svg?branch=master" alt="Build Status" /></a>
+<a href="https://app.travis-ci.com/astoff/digestif"><img src="https://app.travis-ci.com/astoff/digestif.svg?branch=main" alt="Build Status"></a>
+<a href="https://ctan.org/pkg/digestif"><img alt="CTAN" src="https://img.shields.io/ctan/v/digestif?color=blue"></a>
+<a href="https://luarocks.org/modules/astoff/digestif"><img alt="LuaRocks" src="https://img.shields.io/luarocks/v/astoff/digestif?color=blue"></a>
</p>
Digestif is a code analyzer, and a [language server][lsp], for LaTeX,
@@ -11,7 +12,7 @@ ConTeXt et caterva. It provides context-sensitive completion,
documentation, code navigation, and related functionality to any text
editor that speaks the LSP protocol.
-![Mandatory GIF][gif]
+<p align="center"><img src="https://raw.githubusercontent.com/astoff/digestif/images/screenshot.gif" alt="Madatory GIF"></p>
Features
--------
@@ -134,17 +135,17 @@ digestif --generate FILES
After filling in the missing details, the resulting tags file can be
added to this repository (pull requests are welcome!). The format of
-the tags files should be more or less self explanatory. See the data
-folder for examples.
+the tags files should be more or less self explanatory. See the
+[data](./data) folder for examples.
License
-------
Digestif is available under the [GNU General Public License][GPL],
version 3 or later. For some files in the [data](./data) directory, a
-different license applies. See [LICENSE](./LICENSE) for details.
+different (free) license applies. See [LICENSE.md](./LICENSE.md) for
+details.
-[gif]: https://raw.githubusercontent.com/astoff/digestif/images/screenshot.gif
[info-issues]: https://github.com/astoff/digestif/wiki/Common-installation-issues#info-nodes
[installation-issues]: https://github.com/astoff/digestif/wiki/Common-installation-issues
[coc]: https://github.com/neoclide/coc.nvim
diff --git a/support/digestif/bin/digestif.texlua b/support/digestif/bin/digestif.texlua
index caf518071b..5f22a17e12 100755
--- a/support/digestif/bin/digestif.texlua
+++ b/support/digestif/bin/digestif.texlua
@@ -4,7 +4,7 @@
os.setenv("TEXMFDOTDIR", package.config:find("^\\") and "NUL" or "/dev/null")
kpse.set_program_name("luatex")
local zip = require "zip"
-local archive = kpse.find_file("digestif.zip")
+local archive = kpse.find_file("digestif.zip", "texmfscripts")
or error("Can't find 'digestif.zip' archive")
local function digestif_searcher(modname)
local submod = modname:match("^digestif%.(.+)")
diff --git a/support/digestif/data/amsrefs.sty.tags b/support/digestif/data/amsrefs.sty.tags
index 21bcad5c01..b97d4b6385 100644
--- a/support/digestif/data/amsrefs.sty.tags
+++ b/support/digestif/data/amsrefs.sty.tags
@@ -2,8 +2,8 @@
-- Copyright 2022 Augusto Stoffel
-- SPDX-License-Identifier: LPPL-1.3c+
--
--- Adapted from the amsrefs package documentation, which can be found
--- at https://ctan.org/pkg/amsrefs.
+-- Adapted from the amsrefs package documentation, which can be found at
+-- https://ctan.org/pkg/amsrefs.
ctan_package = "amsrefs"
package = {
options = {
diff --git a/support/digestif/data/amssymb.sty.tags b/support/digestif/data/amssymb.sty.tags
index c7b19b5a3c..d04f5c4f14 100644
--- a/support/digestif/data/amssymb.sty.tags
+++ b/support/digestif/data/amssymb.sty.tags
@@ -5,9 +5,8 @@
-- Copyright 2022 Augusto Stoffel
-- SPDX-License-Identifier: LPPL-1.3c+
--
--- Adapted from the file unicode-math-table.tex, part of the
--- unicode-math package, which can be found at
--- https://ctan.org/pkg/unicode-math.
+-- Adapted from the file unicode-math-table.tex, part of the unicode-math
+-- package, which can be found at https://ctan.org/pkg/unicode-math.
ctan_package = "amsfonts"
commands = {
Bbbk = {
diff --git a/support/digestif/data/biblatex.sty.tags b/support/digestif/data/biblatex.sty.tags
index a99a80fe65..77d784a6f7 100644
--- a/support/digestif/data/biblatex.sty.tags
+++ b/support/digestif/data/biblatex.sty.tags
@@ -4,8 +4,8 @@
-- Copyright 2022 Augusto Stoffel
-- SPDX-License-Identifier: LPPL-1.3c
--
--- Adapted from the biblatex package documentation, which can be found
--- at https://github.com/plk/biblatex.
+-- Adapted from the biblatex package documentation, which can be found at
+-- https://ctan.org/pkg/biblatex.
ctan_package = "biblatex"
dependencies = {
"blx-case-expl3.sty",
diff --git a/support/digestif/data/csquotes.sty.tags b/support/digestif/data/csquotes.sty.tags
index d3dac638f3..b22a45f8ff 100644
--- a/support/digestif/data/csquotes.sty.tags
+++ b/support/digestif/data/csquotes.sty.tags
@@ -3,8 +3,8 @@
-- Copyright 2022 Augusto Stoffel
-- SPDX-License-Identifier: LPPL-1.3c+
--
--- Adapted from the csquotes package documentation, which can be found
--- at https://ctan.org/pkg/csquotes.
+-- Adapted from the csquotes package documentation, which can be found at
+-- https://ctan.org/pkg/csquotes.
ctan_package = "csquotes"
dependencies = {"etoolbox.sty", "keyval.sty"}
commands = {
diff --git a/support/digestif/data/etoolbox.sty.tags b/support/digestif/data/etoolbox.sty.tags
index 7e9f06556f..8a3b137f93 100644
--- a/support/digestif/data/etoolbox.sty.tags
+++ b/support/digestif/data/etoolbox.sty.tags
@@ -3,8 +3,8 @@
-- Copyright 2022 Augusto Stoffel
-- SPDX-License-Identifier: LPPL-1.3c+
--
--- Adapted form the etoolbox package documentation, which can be found
--- at https://ctan.org/pkg/etoolbox.
+-- Adapted form the etoolbox package documentation, which can be found at
+-- https://ctan.org/pkg/etoolbox.
ctan_package = "etoolbox"
dependencies = {"etex.sty"}
commands = {
diff --git a/support/digestif/data/latex.tags b/support/digestif/data/latex.tags
index 7d8a3bbd53..e4c9a95399 100644
--- a/support/digestif/data/latex.tags
+++ b/support/digestif/data/latex.tags
@@ -3,10 +3,10 @@
-- Copyright 1988, 1994, 2007 Stephen Gilmore
-- Copyright 1994, 1995, 1996 Torsten Martinsen
-- Copyright 2022 Augusto Stoffel
--- SPDX-License-Identifier: GFDL
+-- SPDX-License-Identifier: GFDL-old-style
--
--- Adapted from the LaTeX2e Unofficial Reference Manual, which can be
--- found at https://latexref.xyz/.
+-- Adapted from the LaTeX2e Unofficial Reference Manual, which can be found at
+-- https://latexref.xyz/.
ctan_package = "latex"
dependencies = {"primitives"}
documentation = {
diff --git a/support/digestif/data/pgf.tags b/support/digestif/data/pgf.tags
index 24bdeeec27..6f8a20044a 100644
--- a/support/digestif/data/pgf.tags
+++ b/support/digestif/data/pgf.tags
@@ -3,7 +3,7 @@
-- SPDX-License-Identifier: GFDL-1.2-or-later or LPPL-1.3c+
--
-- Adapted from the PGF manual, version 3.1.9a, which can be found at
--- https://github.com/pgf-tikz/pgf/.
+-- https://ctan.org/pkg/pgf.
ctan_package = "pgf"
documentation = {{summary = "PGF Manual", uri = "texmf:doc/generic/pgf/pgfmanual.pdf"}}
commands = {
diff --git a/support/digestif/data/plain.tags b/support/digestif/data/plain.tags
index fea2e363c9..c489f90799 100644
--- a/support/digestif/data/plain.tags
+++ b/support/digestif/data/plain.tags
@@ -1,6 +1,6 @@
-- Copyright 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry
-- Copyright 2022 Augusto Stoffel
--- SPDX-License-Identifier: GFDL-1.3-only
+-- SPDX-License-Identifier: GFDL-1.3-or-later
--
-- Adapted from the book TeX for the Impatient, which can be found at
-- https://www.gnu.org/software/teximpatient.
diff --git a/support/digestif/data/primitives.tags b/support/digestif/data/primitives.tags
index 3c68daa40a..422cea6621 100644
--- a/support/digestif/data/primitives.tags
+++ b/support/digestif/data/primitives.tags
@@ -1,6 +1,6 @@
-- Copyright 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry
-- Copyright 2022 Augusto Stoffel
--- SPDX-License-Identifier: GFDL-1.3-only
+-- SPDX-License-Identifier: GFDL-1.3-or-later
--
-- Adapted from the book TeX for the Impatient, which can be found at
-- https://www.gnu.org/software/teximpatient.
diff --git a/support/digestif/data/teximpatient.tags b/support/digestif/data/teximpatient.tags
index 229133e1ef..9ef1a0030c 100644
--- a/support/digestif/data/teximpatient.tags
+++ b/support/digestif/data/teximpatient.tags
@@ -1,6 +1,6 @@
-- Copyright 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry
-- Copyright 2022 Augusto Stoffel
--- SPDX-License-Identifier: GFDL-1.3-only
+-- SPDX-License-Identifier: GFDL-1.3-or-later
--
-- Adapted from the book TeX for the Impatient, which can be found at
-- https://www.gnu.org/software/teximpatient.
diff --git a/support/digestif/data/texinfo.tags b/support/digestif/data/texinfo.tags
index 3ec353f046..39115b57a1 100644
--- a/support/digestif/data/texinfo.tags
+++ b/support/digestif/data/texinfo.tags
@@ -1,6 +1,6 @@
-- Copyright 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
-- Copyright 2019 Augusto Stoffel
--- SPDX-License-Identifier: GFDL-1.3-only
+-- SPDX-License-Identifier: GFDL-1.3-or-later
--
-- Adapted from the GNU Texinfo manual, which can be found at
-- https://www.gnu.org/software/texinfo/manual/texinfo/.
diff --git a/support/digestif/data/tikz.tags b/support/digestif/data/tikz.tags
index 187c2ea9ec..f14f8093f9 100644
--- a/support/digestif/data/tikz.tags
+++ b/support/digestif/data/tikz.tags
@@ -3,7 +3,7 @@
-- SPDX-License-Identifier: GFDL-1.2-or-later or LPPL-1.3c+
--
-- Adapted from the PGF manual, version 3.1.9a, which can be found at
--- https://github.com/pgf-tikz/pgf/.
+-- https://ctan.org/pkg/pgf.
ctan_package = "tikz"
documentation = {{summary = "PGF Manual", uri = "texmf:doc/generic/pgf/pgfmanual.pdf"}}
commands = {
diff --git a/support/digestif/data/unicode-math.sty.tags b/support/digestif/data/unicode-math.sty.tags
index ee07354621..2f7e04b5e4 100644
--- a/support/digestif/data/unicode-math.sty.tags
+++ b/support/digestif/data/unicode-math.sty.tags
@@ -5,9 +5,8 @@
-- Copyright 2022 Augusto Stoffel
-- SPDX-License-Identifier: LPPL-1.3c+
--
--- Adapted from the file unicode-math-table.tex, part of
--- the unicode-math package, which can be found at
--- https://github.com/wspr/unicode-math/
+-- Adapted from the file unicode-math-table.tex, part of the unicode-math
+-- package, which can be found at https://ctan.org/pkg/unicode-math.
ctan_package = "unicode-math"
commands = {
APLboxquestion = {
diff --git a/support/digestif/digestif/config.lua b/support/digestif/digestif/config.lua
index 8b901ba93d..43b7971094 100644
--- a/support/digestif/digestif/config.lua
+++ b/support/digestif/digestif/config.lua
@@ -3,7 +3,7 @@ local format = string.format
local config = {}
-config.version = "0.5"
+config.version = "0.5.1"
local pre_version = os.getenv("DIGESTIF_PRERELEASE")
if pre_version then
config.version = config.version .. "-" .. pre_version
diff --git a/support/digestif/digestif/langserver.lua b/support/digestif/digestif/langserver.lua
index 55bd8c8dd7..bbda819f11 100644
--- a/support/digestif/digestif/langserver.lua
+++ b/support/digestif/digestif/langserver.lua
@@ -401,15 +401,14 @@ local function write_msg(msg)
end
local function read_msg()
- local headers, msg = {}, nil
- for h in io.lines() do
- if h == "" or h == "\r" then break end
- local k, v = string.match(h, "^([%a%-]+): (.*)")
+ local headers = {}
+ for line in io.lines() do
+ if line == "" or line == "\r" then break end
+ local k, v = string.match(line, "^([%a%-]+): (.*)")
if k then headers[k] = v end
end
- local len = tonumber(headers["Content-Length"])
- if len then msg = io.read(len) end
- return msg, headers
+ local len = tonumber(headers["Content-Length"]) or 0
+ return io.read(len), headers
end
local function rpc_send(id, result, error_code)
@@ -429,6 +428,10 @@ local function rpc_receive()
rpc_send(null, request, -32700)
os.exit(false)
end
+ if type(request) ~= "table" or type(request.method) ~= "string" then
+ rpc_send(null, "Invalid request", -32600)
+ os.exit(false)
+ end
return request.id, request.method, request.params
end