From: Matthijs Kooijman Date: Wed, 1 Jul 2009 15:04:19 +0000 (+0200) Subject: Allow a word to start with uppercase letters too. X-Git-Tag: final-thesis~314 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=commitdiff_plain;h=99442c2b5e3f29275d53c14969741c477ecc30af Allow a word to start with uppercase letters too. --- 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