vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
542 stars 90 forks source link

Awkward syntax highlighting in vim #342

Closed MamnoonSiam closed 1 year ago

MamnoonSiam commented 1 year ago

Not sure if the following vim syntax highlighting of inline asymptote codes is intended or not: image

Either way, it is quite unpleasant and distracting.

johncbowman commented 1 year ago

The vim syntax highlighting in asy.vim is for Asymptote code only. If you try vim latexusage.tex it shouldn't look anything like the above example. Maybe what you are showing is a result of some external TeX syntax highlighting script you are using? The only syntax highlighting that we ship for inline Asymptote code is for Emacs: https://asymptote.sourceforge.io/doc/Editing-modes.html#index-lasy-mode