highlightjs/highlight.js

(C++) Incorrect highlight of raw string literals

クローズ

#3,585 opened on 2022/07/16

 (10 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (3,497 件のフォーク)batch import
buggood first issuehelp welcomelanguage

Repository metrics

Stars
 (22,960 個のスター)
PR merge metrics
 (平均マージ 6m) (30d で 2 merged PRs)

説明

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

コントリビューターガイド