jparise / vim-graphql

A Vim plugin that provides GraphQL file detection, syntax highlighting, and indentation.
MIT License
492 stars 25 forks source link

Support for docstring #80

Closed dtrckd closed 2 years ago

dtrckd commented 2 years ago

Hello,

It seems that the syntax for documentation comments, like the following, are not supported ?

type MyType {
"""
My Multilne documentation 
written here.
"""
myField: String
}

Having such support could enabled notably the folding of such "docstring," like we do in Python for exemple. Is such support considered ? Or Would eventual a PR be considered ?

dtrckd commented 2 years ago

Ok I found that it's actually defined in the syntax file.

syn region graphqlString start=+"""+ skip=+\\"""+ end=+"""+