Bug#885936: vim-runtime: please support TeX and YAML syntax highlighting within syntax/markdown.vim

Francesco Poli (wintermute) invernomuto at paranoici.org
Sun Dec 31 14:50:01 UTC 2017


Package: vim-runtime
Version: 2:8.0.1401-2
Severity: wishlist
Tags: patch

Hello!

# Description of the issue

File runtime/syntax/markdown.vim supports highlighting the markdown
syntax, but fails to support a pair of useful extensions of the
markdown language: the [TeX Math] inside dollars and the
[YAML metadata] block.

[TeX Math]: <http://pandoc.org/MANUAL.html#math>
[YAML metadata]: <http://pandoc.org/MANUAL.html#extension-yaml_metadata_block>

In order to correctly highlight markdown documents that use these
extensions, file runtime/syntax/markdown.vim should be enhanced.

# Proposed solution

I prepared a patch (vaguely inspired to some suggestions and/or enhanced
syntax/markdown.vim files found on the Internet) that imports
the syntax highlighting rules for TeX and YAML and uses them
within certain regions.

You should find the patch attached to this bug report.

Please apply it to the Debian package and/or forward it upstream,
as appropriate.

# Licensing considerations

According to the debian/copyright file, it appears that
runtime/syntax/markdown.vim is released under the Vim license.

I am not sure my patch is creative enough to be copyrighted by me.
Anyway, in case it is, I hereby release it under the same license as
the original runtime/syntax/markdown.vim file, that is to say, under
the Vim license.

# Thanks

I would like to thank you for maintaining the Debian package for Vim
(and the upstream developer(s) for developing Vim itself).
I hope my patch may be accepted soon.

Thanks for your time!
Bye.


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim            2:8.0.1401-2
ii  vim-gtk [vim]  2:8.0.1401-2
ii  vim-tiny       2:8.0.1401-2

vim-runtime suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syntax_markdown_vim.diff.gz
Type: application/gzip
Size: 516 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20171231/48620fe9/attachment.bin>


More information about the pkg-vim-maintainers mailing list