diff --git a/src/main/java/io/github/homchom/recode/feature/visual/ExpressionHighlighting.kt b/src/main/java/io/github/homchom/recode/feature/visual/ExpressionHighlighting.kt index 1d6f3faa..f8d9f5a4 100644 --- a/src/main/java/io/github/homchom/recode/feature/visual/ExpressionHighlighting.kt +++ b/src/main/java/io/github/homchom/recode/feature/visual/ExpressionHighlighting.kt @@ -125,6 +125,6 @@ class ExpressionHighlighter { private fun styleAt(depth: Int) = if (depth == 0) { style() } else { - style().color(colors[depth - 1 % colors.size]) + style().color(colors[(depth - 1) % colors.size]) } } \ No newline at end of file