adityam / filter

ConTeXt module to process contents of a start-stop environment through an external program
47 stars 10 forks source link

Vim filter cannot process two files with same name but different extensions #57

Closed gucci-on-fleek closed 2 years ago

gucci-on-fleek commented 3 years ago

e8a769e09ff711a4e4d9e2acedbf979d6f1628d1 changed \splitoffname to \splitoffbase. \splitoffbase discards the file extension, which means that you cannot highlight two files with the same name and different extensions since the .vimout file will always be overwritten by the last file included.

Reproduction

ConTeXt: ver: 2021.09.26 17:00 LMTX fmt: 2021.10.4 int: english/english

vim/filter modules: 3873a0a89cdae7bdcbc526cbbd5a6e8d1252132b

test.A

\def\AAA{\relax}

test.B

\def\BBB{\relax}

test.tex

\usemodule[vim]
\definevimtyping[TEX][syntax=tex]

\starttext
    \section{A}
    \typeTEXfile{test.A}
    \section{B}
    \typeTEXfile{test.B}
\stoptext

Result

result