Optimizations in LuaPattern (don't allocate) and SyntaxTokenizer. Now it's possible to declare a dynamic syntax detection from it's context, this feature improves drastically Markdown parsing performance.

This commit is contained in:
Martín Lucas Golini
2023-10-06 00:14:07 -03:00
parent 47bcd841c7
commit fbeadf7d7f
13 changed files with 74 additions and 29 deletions

View File

@@ -400,7 +400,7 @@ void MapEditor::createTextureRegionContainer( Int32 Width ) {
->setParent( mTextureRegionCont )
->setPosition( mChkBlocked->getPosition().x,
mChkBlocked->getPosition().y + mChkBlocked->getSize().getHeight() + 4 );
mChkRot90->setText( String::fromUtf8( "Rotate 90º" ) );
mChkRot90->setText( String::fromUtf8( std::string_view{ "Rotate 90º" } ) );
mChkRot90->addEventListener( Event::OnValueChange,
cb::Make1( this, &MapEditor::chkClickRot90 ) );