Stop treating backticks as literals.

This commit is contained in:
Vidar Holen 2012-11-27 23:11:59 -08:00
parent 0cbbee7b89
commit 396541f3c2
3 changed files with 6 additions and 3 deletions

View file

@ -516,12 +516,12 @@ readSingleQuotedPart =
prop_readBackTicked = isWarning readBackTicked "`ls *.mp3`"
readBackTicked = do
id <- getNextId
parseNote InfoC "Ignoring deprecated `..` backtick expansion. Use $(..) instead."
parseNote WarningC "Use $(..) instead of deprected `..` backtick expansion."
pos <- getPosition
char '`'
f <- readGenericLiteral (char '`')
char '`' `attempting` (eof >> parseProblemAt pos ErrorC "Can't find terminating backtick for this one.")
return $ T_Literal id f
return $ T_Backticked id f
prop_readDoubleQuoted = isOk readDoubleQuoted "\"Hello $FOO\""