From 99442c2b5e3f29275d53c14969741c477ecc30af Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 1 Jul 2009 17:04:19 +0200 Subject: [PATCH 1/1] Allow a word to start with uppercase letters too. --- pret-lam.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pret-lam.lua b/pret-lam.lua index cf50e87..5769a31 100644 --- a/pret-lam.lua +++ b/pret-lam.lua @@ -64,7 +64,7 @@ end function buffers.visualizers.lam.take_word(str) -- A word must always start with a-z (in particular, λ is not a valid -- start of a word). - res, newstr = utf.match(str, "^([a-z][%a%d_]+)(.*)") + res, newstr = utf.match(str, "^([a-zA-Z][%a%d_]+)(.*)") return res, newstr or str end -- 2.30.2