summaryrefslogtreecommitdiff
path: root/src/runtime/haskell
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/haskell')
-rw-r--r--src/runtime/haskell/PGF/Lexing.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/haskell/PGF/Lexing.hs b/src/runtime/haskell/PGF/Lexing.hs
index a49328826..782757b03 100644
--- a/src/runtime/haskell/PGF/Lexing.hs
+++ b/src/runtime/haskell/PGF/Lexing.hs
@@ -30,12 +30,12 @@ unlexText = capitInit . unlext where
_ -> []
-- | Bind tokens separated by Prelude.BIND, i.e. &+
-bindTok :: [String] -> String
+bindTok :: [String] -> [String]
bindTok ws = case ws of
- w:"&+":ws2 -> w ++ bindTok ws2
- w:[] -> w
- w:ws2 -> w ++ " " ++ bindTok ws2
- [] -> ""
+ w1:"&+":w2:ws -> bindTok ((w1++w2):ws)
+ "&+":ws -> bindTok ws
+ w:ws -> w:bindTok ws
+ [] -> []
-- * Code lexing