From 7fd434a692d6f6b7d6d1ef2c4fd447c6492483c4 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 25 Jan 2022 22:34:38 -0800 Subject: better default word at cursor for prose --- src/kilo.c | 4 ++-- 1 file 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) { -- cgit 1.4.1-2-gfad0