Merge: Use tagged-fences to discriminate docunits
authorJean Privat <jean@pryen.org>
Fri, 28 Nov 2014 19:51:34 +0000 (14:51 -0500)
committerJean Privat <jean@pryen.org>
Fri, 28 Nov 2014 19:51:34 +0000 (14:51 -0500)
Using heuristics to know what is a docunit and what is a raw block of code is not nice because syntax-errors in docunits happen and we do not want to silence them.

This PR introduces (and documents) the usage of tagged fences to force the programmer to explicit the role of the blocks of code.

By default (with indented block or untagged fences) code blocks are considered docunits to be checked by nitunit.
The tag `nit` does the same.
Any other tag cause docunit to ignore the whole block.

The special tag `nitish` makes docunit ignore the block but allows nitdoc to highlight it.

~~~~
~~~~

Pull-Request: #941
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

1  2 
lib/poset.nit

diff --cc lib/poset.nit
Simple merge