highlightjs/highlight.js

(C++) Incorrect highlight of raw string literals

Fechada

#3.585 aberto em 16 de jul. de 2022

 (10 comentários) (0 reação) (0 responsável)JavaScript (3.497 forks)batch import
buggood first issuehelp welcomelanguage

Métricas do repositório

Stars
 (22.960 estrelas)
Métricas de merge de PR
 (Mesclagem média 6m) (2 fundiu PRs em 30d)

Description

Incorrect highlight of raw string literals

A raw string literal will cause any code following it to be highlighted as a string.

屏幕截图(18)

Expected behavior

// just to show the error
vector<string> s({R"(JKhf2n"v; 0>qwv>q " JKhf2n"l0 "v42HHf&g )","4U \"N *+ "});
int other_code;  // just to show the error

Guia do colaborador