highlightjs/highlight.js

(C++) highlight incorrectly

Open

#3,505 建立於 2022年3月21日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (3,497 fork)batch import
buggood first issuehelp welcomelanguage

倉庫指標

Star
 (22,960 star)
PR 合併指標
 (平均合併 6分鐘) (30 天內合併 2 個 PR)

描述

Describe the issue

Screenshot_20220320_225211

Everything after the define line has no highlighting.

Which language seems to have the issue?

C++

Are you using highlight or highlightAuto?

highlight.js 11.5.0

Sample Code to Reproduce

int a = 1;

#define what do { cout << ">"; } while (0)

int main() {
}

Expected behavior

Highlight correctly after the define line.

貢獻者指南