mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
Fix syntax highlighting unicode support (#475)
* convert BasicParser to a template * fix syntax hightlighting with unicode characters
This commit is contained in:
parent
b61f594495
commit
8a8c1525fd
19 changed files with 644 additions and 509 deletions
|
|
@ -56,7 +56,7 @@ static std::unique_ptr<FontStylesScheme> build_styles(
|
|||
}
|
||||
|
||||
std::unique_ptr<FontStylesScheme> devtools::syntax_highlight(
|
||||
const std::string& lang, std::string_view source
|
||||
const std::string& lang, std::wstring_view source
|
||||
) {
|
||||
try {
|
||||
if (lang == "lua") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue