mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 18:31:43 +03:00
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
|
|
--}
|