Idris2/tests/idris2/basic037/Comments.idr
Edwin Brady a972778eab Add test script
They don't all pass yet, for minor reasons. Coming shortly...
Unfortunately the startup overhead for chez is really noticeable here!
2020-05-19 18:25:18 +01:00

40 lines
776 B
Idris

{-------------------------}
-- These should be
-- ignored
{- {---------------} -}
-- Comments should have the right to be empty:
--
-- This is a valid comment {-
-- It should not lead to a parse error if nested in a
-- multiline comment
{- Hence this test
-- This is a valid comment {-
-- It should not lead to a parse error if nested in a
-- multiline comment
-}
myString : String
myString = "Similarly, this is a valid string literal {- "
-- So we should be able to put it in a multiline comment
{- Hence this test
myString : String
myString = "Similarly, this is a valid string literal {- "
-- So we should be able to put it in a multiline comment
-}
{------------- Some people {---- like ---}
{- comments with
weird
----------}
closing delimiters
--}