diff --git a/html.nanorc b/html.nanorc
index 77a04dd..01bb24a 100644
--- a/html.nanorc
+++ b/html.nanorc
@@ -28,7 +28,7 @@ color yellow ""(\\.|[^"])*""
color red "?[[:alnum:]]*;"
## Template strings (not in the HTML spec, but very commonly used)
-color magenta "\{[^\}]*\}"
+color magenta "\{[^\}]*\}\}?"
color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]"
## Comments