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.

贡献者指南