1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: implement cgen tag for Markdown examples in v check-md (#13332)

This commit is contained in:
Delyan Angelov
2022-01-31 22:51:04 +02:00
committed by GitHub
parent b34860e39b
commit db50e79d26
5 changed files with 86 additions and 51 deletions

View File

@@ -13,6 +13,7 @@ Flags:
NB: There are several special keywords, which you can put after the code fences for v.
These are:
compile - Default, can be omitted. The example will be compiled and formatting is verified.
cgen - The example produces C code, which may not be compilable (when external libs are not installed). Formatting is verified.
live - Compile hot reload examples with the ´-live´ flag set and verify formatting.
ignore - Ignore the example, useful for examples that just use the syntax highlighting
failcompile - Known failing compilation. Useful for examples demonstrating compiler errors.