/- # block comment in top of the file this is a block comment -/ -- this is a test of inline comment -- ignore these line --# import Lean --# set_option linter.missingDocs false --# --#-- def thisIsIgnored : Nat := 0 def thisIsAlsoIgnored : Nat := 0 --#-- /-! ## module comment this is a module comment -/ /-! ## markdown content This is a list * first * second * third This is a [link](hoge). This is a **bold text**. This is a `inline code`. This is a block code: ```lean def hoge : Nat := 0 ``` This is an *italic text*. -/ variable (P Q : Prop) example (hQ : Q) : P → Q := by -- test of lean codes intro _ exact hQ /-- test of doc comment -/ example (h : P) : P ∨ Q := by /- test of inner block comments -/ apply Or.inl exact h /-- doc comment /- test of block comment in doc -/ -/ macro "foo" : term => `(0) /-- test of code block in doc comment ```lean example : hoge = 42 := by rfl ``` -/ def hoge := 42 inductive MyNat where | zero | succ (n : MyNat) -- This is a test for hidden `#guard_msgs` command /-- info: MyNat.succ (n : MyNat) : MyNat -/ #guard_msgs in --# #check MyNat.succ -- test for visible `#guard_msgs` command /-- info: 0 -/ #guard_msgs in #eval Nat.zero namespace MyNat /- ## indent block -/ -- test for hidden `#guard_msgs` command in indent block /-- info: MyNat.succ (n : MyNat) : MyNat -/ #guard_msgs in --# #check MyNat.succ end MyNat macro "echo" x:str : command => `(#eval $x) /- ## nested comment Here is a sample of nested block comment: /- Hi. I am a nested comment! -/ Here is another example of nested block comment: ```lean /-! ### sample -/ /- wao. this is another sample!! -/ /-- this is doc comment in comment block -/ def foo : Nat := 0 ``` -/ -- ⋆LANG⋆=text -- test for language metadata for code block echo "Hello, world!" /- ## quoted code > Here is a sample of quoted code: -/ -- ⋆QUOTE⋆ def greet := "hello, world" /- > quoted code says something. -/ /- > both quoted and language metadata -/ -- ⋆QUOTE⋆ ⋆LANG⋆=hoge def quotedHoge := "hoge" /- > quoted hoge says `hoge`. -/ /- ## Uniform Internal Link Syntax * [link to Second.md](#{root}/Second/Second.md) * [link to Third.md](#{root}/Third/Third/Third.md) * [link to Fourth.md](#{root}/Fourth.md) -/