mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 16:51:51 +03:00
a972778eab
They don't all pass yet, for minor reasons. Coming shortly... Unfortunately the startup overhead for chez is really noticeable here!
40 lines
776 B
Idris
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
|
|
--}
|