Skip to content

Commit

Permalink
Bug 722111 - 'function' is displayed as C++ keyword (green) in HTML o…
Browse files Browse the repository at this point in the history
…utput

"final", "override" and "import"  can be keywords, so removed from the list.
  • Loading branch information
albert-github committed Aug 21, 2021
1 parent 538a72c commit e1502f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/code.l
Expand Up @@ -3728,9 +3728,9 @@ static bool skipLanguageSpecificKeyword(yyscan_t yyscanner,const char *keyword)
{
struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
static std::vector<std::string> non_cpp_keywords = {
"__assume", "__super", "abstract", "final", "function",
"gcnew", "gcroot", "generic", "get", "import",
"internal", "null", "override", "pin_ptr", "raise",
"__assume", "__super", "abstract", "function",
"gcnew", "gcroot", "generic", "get",
"internal", "null", "pin_ptr", "raise",
"remove", "self", "set", "transient"};
return yyextra->lang==SrcLangExt_Cpp && (std::find(non_cpp_keywords.begin(), non_cpp_keywords.end(), keyword) != non_cpp_keywords.end());
}
Expand Down

0 comments on commit e1502f6

Please sign in to comment.