Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add advanced graphql changes separate from test changes #2939

Merged
merged 2 commits into from Jun 13, 2021

Conversation

JaKXz
Copy link
Collaborator

@JaKXz JaKXz commented Jun 10, 2021

@RunDevelopment ironically after all the discussion about "integration" tests from #2927, I realized the library I'm using that vendors Prism only uses the .tokenize method so I'm not able to use plugins anyway 馃槀 馃槶

Here's the PR for just the advanced graphql changes without any major modifications to the test suite :)

Closes #2927

@github-actions
Copy link

github-actions bot commented Jun 10, 2021

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +588 B (+106.9%).

file master pull size diff % diff
components/prism-graphql.min.js 550 B 1.14 KB +588 B +106.9%

Generated by 馃毇 dangerJS against 913c177

- atom-input for Input type objects for mutations and type definitions
  - variable-input to go along with atom-input
- built in scalars
- definition-mutation and definition-query
- property-query and property-mutation
- base property token for all other tokens because all text in graphql is significant.

Co-Authored-By: Michael Schmidt <mitchi5000.ms@googlemail.com>
@RunDevelopment
Copy link
Member

Sorry for the delay @JaKXz!

the library I'm using that vendors Prism only uses the .tokenize method so I'm not able to use plugins anyway 馃槀 馃槶

I'm sorry to hear that. Coincidentally, I just opened an issue for a new hook (#2949) that would solve your problem. But this hook will likely only be added in v2.0.

@RunDevelopment
Copy link
Member

I just merged a few PRs that changed a bunch of files. Let me quickly resolve the merge conflict.

@RunDevelopment
Copy link
Member

@JaKXz Also, you should request your vendor to support the before-tokenize and after-tokenize hooks. These hooks are necessary for some languages to work properly. Even the new hook I proposed won't change that.

@RunDevelopment RunDevelopment merged commit 34f24ac into PrismJS:master Jun 13, 2021
@JaKXz JaKXz deleted the feat/advanced-graphql-2 branch June 13, 2021 23:57
@JaKXz
Copy link
Collaborator Author

JaKXz commented Jun 14, 2021

No worries, thanks for merging! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants