mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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
|
|
@ -6,6 +6,7 @@
|
|||
#include <utility>
|
||||
|
||||
#include "util/stringutil.hpp"
|
||||
#include "coders/BasicParser.hpp"
|
||||
|
||||
using namespace xml;
|
||||
|
||||
|
|
@ -191,7 +192,7 @@ inline bool is_xml_identifier_part(char c) {
|
|||
}
|
||||
|
||||
namespace {
|
||||
class Parser : BasicParser {
|
||||
class Parser : BasicParser<char> {
|
||||
std::unique_ptr<Document> document;
|
||||
|
||||
std::unique_ptr<Node> parseOpenTag() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue