src: nitunit and docdown use the fence-tag to skip non-nit code
[nit.git] / src / testing / testing_doc.nit
index 86466bf..501ccfd 100644 (file)
@@ -39,6 +39,11 @@ class NitUnitExecutor
                # Skip non-blocks
                if n.tag != "pre" then return
 
+               # Skip strict non-nit
+               if tag != null and tag != "nit" and tag != "" then
+                       return
+               end
+
                # Try to parse it
                var ast = toolcontext.parse_something(text)