summaryrefslogtreecommitdiff
path: root/tex/context/base/core-con.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/core-con.lua')
-rw-r--r--tex/context/base/core-con.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/core-con.lua b/tex/context/base/core-con.lua
index 3ccfb3e23..99f8fc652 100644
--- a/tex/context/base/core-con.lua
+++ b/tex/context/base/core-con.lua
@@ -979,8 +979,9 @@ end
-- These are just helpers but not really for the tex end. Do we have to
-- use translate here?
+local character = lpeg.patterns.utf8character
local whitespace = lpeg.patterns.whitespace
-local word = (1-whitespace) / characters.upper * (1-whitespace)^1
+local word = (character-whitespace) / characters.upper * (character-whitespace)^1
local spacing = whitespace^1
local pattern_one = Cs(word * P(1)^1)
local pattern_all = Cs((word + spacing)^1)