about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/kilo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kilo.c b/src/kilo.c
index 789d7e5..83da598 100644
--- a/src/kilo.c
+++ b/src/kilo.c
@@ -1042,8 +1042,8 @@ static void editorMoveCursor(int key) {
 }
 
 static int identifier_char(char c) {
-    /* keep sync'd with llex */
-    return isalnum(c) || c == '_';
+    /* keep sync'd with llex, with one exception for prose */
+    return isalnum(c) || c == '_' || c == ':';
 }
 
 static void word_at_cursor(char* out, int capacity) {