mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +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
|
|
@ -3,7 +3,7 @@
|
|||
#include <utility>
|
||||
|
||||
#include "coders/json.hpp"
|
||||
#include "coders/commons.hpp"
|
||||
#include "coders/BasicParser.hpp"
|
||||
#include "content/ContentPack.hpp"
|
||||
#include "io/io.hpp"
|
||||
#include "util/stringutil.hpp"
|
||||
|
|
@ -39,7 +39,7 @@ const std::string& langs::Lang::getId() const {
|
|||
|
||||
/// @brief Language key-value txt files parser
|
||||
namespace {
|
||||
class Reader : BasicParser {
|
||||
class Reader : BasicParser<char> {
|
||||
void skipWhitespace() override {
|
||||
BasicParser::skipWhitespace();
|
||||
if (hasNext() && source[pos] == '#') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue