Issue
Java environments have this highlighting issue:

Other languages seem to work as expected.
Might be related to #895?
Another issue is that :e breaks nested syntax highlighting completely (happens with every language).
minimal.vim
vim
set nocompatible
let &runtimepath = '~/.vim/bundle/vimtex,' . &runtimepath
let &runtimepath .= ',~/.vim/bundle/vimtex/after'
filetype plugin indent on
syntax enable
minimal.tex
```tex
\documentclass{article}
\usepackage{minted}
\begin{document}
\begin{minted}{java}
class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello world");
}
}
\end{minted}
\end{document}
```
Output from VimtexInfo
System info
OS: Ubuntu 16.04.6 LTS
Vim version: VIM 8.1 (1-2108)
Has clientserver: true
Servername: VIM
vimtex project: minimal
base: minimal.tex
root: /home/atlas/tmp
tex: /home/atlas/tmp/minimal.tex
out:
log:
aux:
fls:
compiler: latexmk
backend: jobs
output: /tmp/v5wOdv0/1
configuration:
continuous: 1
callback: 1
latexmk options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
latexmk engine: -pdf
viewer: General
qf: LaTeX logfile
config:
packages:
default: 1
default: 1
document class: article
packages:
minted
Think this is fixed now.
Thanks! What about :e breaking syntax highlighting?
Sorry, I closed this too early. Will look into the other issue later this week.
Ok, I think it is fixed now.
I ran into another issue related to code highlighting. Highlighting breaks inside \paragraph{}
\documentclass{article}
\usepackage{minted}
\begin{document}
\paragraph{} % <----
\begin{minted}{java}
class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello world");
}
}
\end{minted}
\par
\end{document}
Thanks, should work now.