Skip to content

Commit

Permalink
dry
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Dec 23, 2019
1 parent 4536bef commit 9f66b73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/languages/cpp.js
Expand Up @@ -76,11 +76,11 @@ function(hljs) {

var TITLE_MODE = {
className: 'title',
begin: '(' + hljs.IDENT_RE + '::)?' + hljs.IDENT_RE,
begin: optional(NAMESPACE_RE) + hljs.IDENT_RE,
relevance: 0
};

var FUNCTION_TITLE = '(' + hljs.IDENT_RE + '::)?' + hljs.IDENT_RE + '\\s*\\(';
var FUNCTION_TITLE = optional(NAMESPACE_RE) + hljs.IDENT_RE + '\\s*\\(';

var CPP_KEYWORDS = {
keyword: 'int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof ' +
Expand Down

0 comments on commit 9f66b73

Please sign in to comment.