Skip to content

Commit d321eae

Browse files
committed
Parser: m upd
1 parent 3dcd056 commit d321eae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Nix/Parser.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ nixUri = lexeme $ annotateLocation1 $ try $ do
319319
\ x ->
320320
isAlphanumeric x
321321
|| (`elem` ("%/?:@&=+$,-_.!~*'" :: String)) x
322-
pure $ NStr $ DoubleQuoted
323-
[Plain $ toText $ start : protocol ++ ':' : address]
322+
pure $ NStr $ DoubleQuoted $ one $ Plain $ toText $ one start <> protocol <> ":" <> address
324323

325324
nixString' :: Parser (NString NExprLoc)
326325
nixString' = lexeme (doubleQuoted <+> indented <?> "string")

0 commit comments

Comments
 (0)