wooorm / refractor

Lightweight, robust, elegant virtual syntax highlighting using Prism
MIT License
722 stars 33 forks source link

GraphQL lang: add "description" (triple-quoted docstring) regex #28

Closed simmerer closed 4 years ago

simmerer commented 4 years ago

Triple-quoted docstrings are valid in GraphQL, but are missing from the language definition here in refractor.

Prism refers to these as description rather than docstring, so I've adopted the same token name here.

wooorm commented 4 years ago

These files you modified are autogenerated. The changes haven’t been published in Prism yet, so there isn’t anything to be done now. But when Prism publishes 1.21.0, updating here in package.json and then running npm test will regenerate everything!

wooorm commented 4 years ago

@simmerer Also, hi! welcome! 👋

simmerer commented 4 years ago

@wooorm Ahh, I didn't realize that they were autogenerated! Thanks for the explanation. I'll close this.

wooorm commented 4 years ago

No problem, appreciate the effort!