The block and single-line descriptions in a GraphQL schema, read as Markdown.
Save the file as config/views/GraphQL.yml under your StylesPath, then:
[*.{graphql,graphqls}]
BasedOnStyles = Vale
View = GraphQL # A GraphQL schema: the descriptions before its types, fields, and
# arguments, block (`"""`) or single-line (`"`), read as Markdown.
#
# [*.{graphql,graphqls}]
# BasedOnStyles = Vale
# View = GraphQL
engine: textfsm
template: |
Value List Description (.*)
Start
^\s*"""${Description}"""\s*$
^\s*"""\s*$ -> Block
^\s*"""${Description}$ -> Block
^\s*"${Description}"\s*$
Block
^\s*"""\s*$ -> Start
^\s*${Description}"""\s*$ -> Start
^\s*${Description}
scopes:
- name: description
expr: Description
type: md