summaryrefslogtreecommitdiff
path: root/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'syntax.c')
-rw-r--r--syntax.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/syntax.c b/syntax.c
index 19aca34..56dc15f 100644
--- a/syntax.c
+++ b/syntax.c
@@ -573,8 +573,10 @@ static void syntax_highlight_python(SyntaxState *state, char32_t const *line, u3
}
*state = 0;
if (in_string && string_is_multiline) {
- *state |= SYNTAX_STATE_PYTHON_STRING
- | (SYNTAX_STATE_PYTHON_STRING_DBL_QUOTED * string_is_dbl_quoted);
+ *state |= (SyntaxState)(
+ SYNTAX_STATE_PYTHON_STRING
+ | (SYNTAX_STATE_PYTHON_STRING_DBL_QUOTED * string_is_dbl_quoted)
+ );
}
}