octol / vim-cpp-enhanced-highlight

Additional Vim syntax highlighting for C++ (including C++11/14/17)
MIT License
1.06k stars 149 forks source link

Syntax highlighting inside raw string #85

Open devsnek opened 4 years ago

devsnek commented 4 years ago

A pattern I've seen a few times:

R"javascript(
  let a = 1;
)javascript";

Behaviour in a similar vein is vim-markdown highlighting code in codeblocks and vim-html highlighting javascript in <script> tags.