Allow a word to start with uppercase letters too.
authorMatthijs Kooijman <m.kooijman@student.utwente.nl>
Wed, 1 Jul 2009 15:04:19 +0000 (17:04 +0200)
committerMatthijs Kooijman <m.kooijman@student.utwente.nl>
Wed, 1 Jul 2009 15:04:19 +0000 (17:04 +0200)
pret-lam.lua

index cf50e87408e1d880d98b2c506a4207879431b2ad..5769a312d94af372d5f319e8300c4550a8cbe3a1 100644 (file)
@@ -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