mirror of https://github.com/odrling/Aegisub
Parse mixin lines as template lines
This commit is contained in:
parent
aeaab655eb
commit
ba3a3dc80a
|
@ -250,7 +250,7 @@ void SubsTextEditCtrl::SetStyles() {
|
|||
|
||||
void SubsTextEditCtrl::UpdateStyle() {
|
||||
AssDialogue *diag = context ? context->selectionController->GetActiveLine() : nullptr;
|
||||
bool template_line = diag && diag->Comment && boost::istarts_with(diag->Effect.get(), "template");
|
||||
bool template_line = diag && diag->Comment && (boost::istarts_with(diag->Effect.get(), "template") || boost::istarts_with(diag->Effect.get(), "mixin"));
|
||||
|
||||
tokenized_line = agi::ass::TokenizeDialogueBody(line_text, template_line);
|
||||
agi::ass::SplitWords(line_text, tokenized_line);
|
||||
|
|
Loading…
Reference in New Issue