simplify fenced code blocks for compatibility

This commit is contained in:
Jonathan Shook 2023-01-17 19:29:51 -06:00
parent 3cd4a42e64
commit fa88a3b13b
8 changed files with 180 additions and 90 deletions

View File

@ -21,7 +21,8 @@ op: select * from bar.table;
*json:*
```json5
```json
{
"op": "select * from bar.table;"
}
@ -29,7 +30,8 @@ op: select * from bar.table;
*ops:*
```json5
```json
[
{
"name": "block0--stmt1",
@ -55,7 +57,8 @@ ops:
*json:*
```json5
```json
{
"ops": [
"select * from bar.table;"
@ -65,7 +68,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--stmt1",
@ -94,7 +98,8 @@ ops:
*json:*
```json5
```json
{
"ops": [
{
@ -106,7 +111,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--op1",
@ -133,7 +139,8 @@ ops:
*json:*
```json5
```json
{
"ops": [
{
@ -146,7 +153,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--op1",
@ -172,7 +180,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": "select * from bar.table;"
@ -182,7 +191,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--op1",
@ -209,7 +219,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -221,7 +232,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--op1",
@ -265,7 +277,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -288,7 +301,8 @@ ops:
*ops:*
```json5
```json
[
{
"bindings": {
@ -350,7 +364,8 @@ blocks:
*json:*
```json5
```json
{
"tags": {
"docleveltag": "is-tagging-everything"
@ -386,7 +401,8 @@ blocks:
*ops:*
```json5
```json
[
{
"bindings": {

View File

@ -25,7 +25,8 @@ ops: "cycle number '{{NumberNameToString}}'"
*json:*
```json5
```json
{
"ops": "cycle number '{{NumberNameToString}}'"
}
@ -33,7 +34,8 @@ ops: "cycle number '{{NumberNameToString}}'"
*ops:*
```json5
```json
[
{
"tags": {
@ -63,7 +65,8 @@ ops:
*json:*
```json5
```json
{
"ops": [
"even cycle '{{NumberNameToString}}'",
@ -74,7 +77,8 @@ ops:
*ops:*
```json5
```json
[
{
"tags": {
@ -114,7 +118,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"myop1": "even cycle '{{NumberNameToString}}'",
@ -125,7 +130,8 @@ ops:
*ops:*
```json5
```json
[
{
"tags": {
@ -168,7 +174,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -181,7 +188,8 @@ ops:
*ops:*
```json5
```json
[
{
"tags": {
@ -217,7 +225,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": [
@ -230,7 +239,8 @@ ops:
*ops:*
```json5
```json
[
{
"tags": {
@ -268,7 +278,8 @@ ops:
```
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -287,7 +298,8 @@ ops:
*ops:*
```json5
```json
[
{
"tags": {
@ -333,7 +345,8 @@ ops:
```
*json:*
```json5
```json
{
"bindings": {
"user_index": "Mod(1000L); ToString();"
@ -355,7 +368,8 @@ ops:
*ops:*
```json5
```json
[
{
"bindings": {

View File

@ -24,7 +24,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -37,7 +38,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--special-op-name",
@ -71,7 +73,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -86,7 +89,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--op1",
@ -117,7 +121,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -130,7 +135,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--op1",
@ -161,7 +167,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -177,7 +184,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--op1",
@ -211,7 +219,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -227,7 +236,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--op1",
@ -264,7 +274,8 @@ ops:
*json:*
```json5
```json
{
"ops": {
"op1": {
@ -282,7 +293,8 @@ ops:
*ops:*
```json5
```json
[
{
"name": "block0--op1",
@ -313,7 +325,8 @@ ops: "my test op"
*json:*
```json5
```json
{
"params": {
"pname": "pvalue"
@ -324,7 +337,8 @@ ops: "my test op"
*ops:*
```json5
```json
[
{
"params": {
@ -356,7 +370,8 @@ blocks:
*json:*
```json5
```json
{
"blocks": {
"block1": {
@ -371,7 +386,8 @@ blocks:
*ops:*
```json5
```json
[
{
"params": {
@ -406,7 +422,8 @@ blocks:
*json:*
```json5
```json
{
"blocks": {
"block1": {
@ -425,7 +442,8 @@ blocks:
*ops:*
```json5
```json
[
{
"params": {
@ -466,7 +484,8 @@ blocks:
*json:*
```json5
```json
{
"blocks": {
"block1": {
@ -487,7 +506,8 @@ blocks:
*ops:*
```json5
```json
[
{
"tags": {
@ -526,7 +546,8 @@ blocks:
*json:*
```json5
```json
{
"blocks": {
"block1": {
@ -547,7 +568,8 @@ blocks:
*ops:*
```json5
```json
[
{
"tags": {

View File

@ -51,7 +51,8 @@ template of `select * from users where userid={userid}`.
Once an op template is parsed into a *parsed command*, it has the state shown in the data structure
schematic below:
```json5
```json
{
"name": "some-map-name",
"statics": {
@ -71,7 +72,8 @@ schematic below:
If either an **op** or **stmt** field is provided, then the same structure as above is used:
```json5
```json
{
"name": "some-string-op",
"statics": {
@ -194,7 +196,8 @@ provide. There should be one way to access all of these in a consistent and unam
Here is an example data structure which illustrates all the possible elements of a parsed command:
```json5
```json
{
"statics": {
"prepared": "true",

View File

@ -29,12 +29,14 @@ block is in array form, and thus compares 0 pair-wise elements.
```
*json:*
```json5
```json
[]
```
*ops:*
```json5
```json
[]
```

View File

@ -14,7 +14,8 @@ desc: <<mydesc:mydescription>>
```
*json:*
```json5
```json
{
"name": "thedefault",
"desc": "mydescription"
@ -22,7 +23,8 @@ desc: <<mydesc:mydescription>>
```
*ops:*
```json5
```json
[]
```
@ -36,14 +38,16 @@ name: TEMPLATE(myname,thedefault)
```
*json:*
```json5
```json
{
"name": "thedefault"
}
```
*ops:*
```json5
```json
[]
```
@ -55,14 +59,16 @@ name: TEMPLATE(myname)
```
*json:*
```json5
```json
{
"name": "UNSET:myname"
}
```
*ops:*
```json5
```json
[]
```
@ -74,13 +80,15 @@ name: TEMPLATE(myname,)
```
*json:*
```json5
```json
{
"name": null
}
```
*ops:*
```json5
```json
[]
```

View File

@ -32,7 +32,8 @@ description: |
*json:*
```json5
```json
{
"description": "summary of this workload\nand more details\n"
}
@ -40,7 +41,8 @@ description: |
*ops:*
```json5
```json
[]
```
@ -66,7 +68,8 @@ scenarios:
*json:*
```json5
```json
{
"scenarios": {
"default": "run driver=diag cycles=10"
@ -76,7 +79,8 @@ scenarios:
*ops:*
```json5
```json
[]
```
@ -93,7 +97,8 @@ scenarios:
*json:*
```json5
```json
{
"scenarios": {
"default": {
@ -106,7 +111,8 @@ scenarios:
*ops:*
```json5
```json
[]
```
@ -123,7 +129,8 @@ scenarios:
*json:*
```json5
```json
{
"scenarios": {
"default": [
@ -136,7 +143,8 @@ scenarios:
*ops:*
```json5
```json
[]
```
@ -158,7 +166,8 @@ scenarios:
*json:*
```json5
```json
{
"scenarios": {
"default": "run alias==first driver=diag cycles=10"
@ -168,7 +177,8 @@ scenarios:
*ops:*
```json5
```json
[]
```
@ -190,7 +200,8 @@ scenarios:
*json:*
```json5
```json
{
"scenarios": {
"default": "run alias===first driver=diag cycles=10"
@ -200,7 +211,8 @@ scenarios:
*ops:*
```json5
```json
[]
```
@ -223,7 +235,8 @@ bindings:
*json:*
```json5
```json
{
"bindings": {
"cycle": "Identity();",
@ -234,7 +247,8 @@ bindings:
*ops:*
```json5
```json
[]
```
@ -257,7 +271,8 @@ params:
*json:*
```json5
```json
{
"params": {
"param1": "pvalue1",
@ -268,7 +283,8 @@ params:
*ops:*
```json5
```json
[]
```
@ -291,7 +307,8 @@ tags:
*json:*
```json5
```json
{
"tags": {
"phase": "main"
@ -301,7 +318,8 @@ tags:
*ops:*
```json5
```json
[]
```
@ -334,7 +352,8 @@ blocks:
*json:*
```json5
```json
{
"blocks": {
"namedblock1": {
@ -352,7 +371,8 @@ blocks:
*ops:*
```json5
```json
[
{
"name": "namedblock1--op1",
@ -401,7 +421,8 @@ blocks:
*json:*
```json5
```json
{
"blocks": [
{
@ -425,7 +446,8 @@ blocks:
*ops:*
```json5
```json
[
{
"name": "block1--op1",
@ -482,7 +504,8 @@ blocks:
*json:*
```json5
```json
{
"blocks": [
{
@ -495,7 +518,8 @@ blocks:
*ops:*
```json5
```json
[
{
"name": "myblock--stmt1",

View File

@ -75,7 +75,8 @@ All fenced code is expected to be annotated with a language specifier as above.
For example, consider this JSON data:
```json5
```json
{
"description": "This is a block of json, and it might be syntax highlighted."
}