1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LanguageServers/Cpp: Add SemanticType::PreprocessorMacro

This adds a new semantic token type, PreprocessorMacro.

Calls to preprocessor macros will now be highlighted when semantic
highlighting is enabled in Hack Studio.
This commit is contained in:
Itamar 2022-03-31 19:09:29 +03:00 committed by Andreas Kling
parent 597ca68e2d
commit 9cd27d1e15
4 changed files with 18 additions and 5 deletions

View file

@ -149,8 +149,8 @@ void ConnectionFromClient::get_tokens_info(String const& filename)
return;
}
auto token_info = m_autocomplete_engine->get_tokens_info(filename);
async_tokens_info_result(move(token_info));
auto tokens_info = m_autocomplete_engine->get_tokens_info(filename);
async_tokens_info_result(move(tokens_info));
}
}