Skip to content

Commit f69356a

Browse files
committed
Recognize CPP built-ins in identifiers.
Fixes highlightjs#675.
1 parent a551a63 commit f69356a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/languages/cpp.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ function(hljs) {
7272
contains: ['self']
7373
},
7474
{
75-
begin: hljs.IDENT_RE + '::'
75+
begin: hljs.IDENT_RE + '::',
76+
keywords: CPP_KEYWORDS
7677
},
7778
{
7879
// Expression keywords prevent 'keyword Name(...)' from being

0 commit comments

Comments
 (0)