Skip to content

Commit

Permalink
Formatting: use markdown lists in 'one of' lists (#726)
Browse files Browse the repository at this point in the history
* Use markdown line breaks in 'one of' lists

* Move from linebreaks to bullets
  • Loading branch information
benjie authored Apr 1, 2021
1 parent d24252b commit bed0a19
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
48 changes: 24 additions & 24 deletions spec/Appendix B -- Grammar Summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ NameContinue ::
- `_`

Letter :: one of
`A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M`
`N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z`
`a` `b` `c` `d` `e` `f` `g` `h` `i` `j` `k` `l` `m`
`n` `o` `p` `q` `r` `s` `t` `u` `v` `w` `x` `y` `z`
- `A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M`
- `N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z`
- `a` `b` `c` `d` `e` `f` `g` `h` `i` `j` `k` `l` `m`
- `n` `o` `p` `q` `r` `s` `t` `u` `v` `w` `x` `y` `z`

Digit :: one of
`0` `1` `2` `3` `4` `5` `6` `7` `8` `9`
- `0` `1` `2` `3` `4` `5` `6` `7` `8` `9`

IntValue :: IntegerPart [lookahead != {Digit, `.`, NameStart}]

Expand Down Expand Up @@ -314,24 +314,24 @@ DirectiveLocation :
- TypeSystemDirectiveLocation

ExecutableDirectiveLocation : one of
`QUERY`
`MUTATION`
`SUBSCRIPTION`
`FIELD`
`FRAGMENT_DEFINITION`
`FRAGMENT_SPREAD`
`INLINE_FRAGMENT`
`VARIABLE_DEFINITION`
- `QUERY`
- `MUTATION`
- `SUBSCRIPTION`
- `FIELD`
- `FRAGMENT_DEFINITION`
- `FRAGMENT_SPREAD`
- `INLINE_FRAGMENT`
- `VARIABLE_DEFINITION`

TypeSystemDirectiveLocation : one of
`SCHEMA`
`SCALAR`
`OBJECT`
`FIELD_DEFINITION`
`ARGUMENT_DEFINITION`
`INTERFACE`
`UNION`
`ENUM`
`ENUM_VALUE`
`INPUT_OBJECT`
`INPUT_FIELD_DEFINITION`
- `SCHEMA`
- `SCALAR`
- `OBJECT`
- `FIELD_DEFINITION`
- `ARGUMENT_DEFINITION`
- `INTERFACE`
- `UNION`
- `ENUM`
- `ENUM_VALUE`
- `INPUT_OBJECT`
- `INPUT_FIELD_DEFINITION`
10 changes: 5 additions & 5 deletions spec/Section 2 -- Language.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ NameContinue ::
- `_`

Letter :: one of
`A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M`
`N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z`
`a` `b` `c` `d` `e` `f` `g` `h` `i` `j` `k` `l` `m`
`n` `o` `p` `q` `r` `s` `t` `u` `v` `w` `x` `y` `z`
- `A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M`
- `N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z`
- `a` `b` `c` `d` `e` `f` `g` `h` `i` `j` `k` `l` `m`
- `n` `o` `p` `q` `r` `s` `t` `u` `v` `w` `x` `y` `z`

Digit :: one of
`0` `1` `2` `3` `4` `5` `6` `7` `8` `9`
- `0` `1` `2` `3` `4` `5` `6` `7` `8` `9`

GraphQL Documents are full of named things: operations, fields, arguments,
types, directives, fragments, and variables. All names must follow the same
Expand Down
38 changes: 19 additions & 19 deletions spec/Section 3 -- Type System.md
Original file line number Diff line number Diff line change
Expand Up @@ -1786,27 +1786,27 @@ DirectiveLocation :
- TypeSystemDirectiveLocation

ExecutableDirectiveLocation : one of
`QUERY`
`MUTATION`
`SUBSCRIPTION`
`FIELD`
`FRAGMENT_DEFINITION`
`FRAGMENT_SPREAD`
`INLINE_FRAGMENT`
`VARIABLE_DEFINITION`
- `QUERY`
- `MUTATION`
- `SUBSCRIPTION`
- `FIELD`
- `FRAGMENT_DEFINITION`
- `FRAGMENT_SPREAD`
- `INLINE_FRAGMENT`
- `VARIABLE_DEFINITION`

TypeSystemDirectiveLocation : one of
`SCHEMA`
`SCALAR`
`OBJECT`
`FIELD_DEFINITION`
`ARGUMENT_DEFINITION`
`INTERFACE`
`UNION`
`ENUM`
`ENUM_VALUE`
`INPUT_OBJECT`
`INPUT_FIELD_DEFINITION`
- `SCHEMA`
- `SCALAR`
- `OBJECT`
- `FIELD_DEFINITION`
- `ARGUMENT_DEFINITION`
- `INTERFACE`
- `UNION`
- `ENUM`
- `ENUM_VALUE`
- `INPUT_OBJECT`
- `INPUT_FIELD_DEFINITION`

A GraphQL schema describes directives which are used to annotate various parts
of a GraphQL document as an indicator that they should be evaluated differently
Expand Down

0 comments on commit bed0a19

Please sign in to comment.