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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-mode fontification error for graphql src blocks #17

Open
danielmai opened this issue Sep 12, 2018 · 1 comment
Open

org-mode fontification error for graphql src blocks #17

danielmai opened this issue Sep 12, 2018 · 1 comment

Comments

@danielmai
Copy link

I use Org mode source blocks quite often, and for source code blocks I set org-src-font-natively to t so that source code blocks within an Org buffer get fontified within the org buffer just like they would within its native mode (e.g, json-mode for json source blocks, c-mode for C source blocks, graphql-mode for GraphQL source blocks).

I've only run into a fontification issue with graphql source blocks and I'm not sure why.

The moment I create a block like this in an org file:

#+BEGIN_SRC graphql

#+END_SRC

I get a message in the minibuffer that says:

org-mode fontification error

and the contents of the source block are not fontified. But if I have a new buffer with graphql-mode as the major mode, the fontification works as expected.

@davazp
Copy link
Owner

davazp commented Sep 15, 2018

I can reproduce this issue. It seems that if I comment the rule https://github.com/davazp/graphql-mode/blob/master/graphql-mode.el#L339-L340 it works (after restarting emacs).

But I don't know why yet. I can't manage to debug it easily. I'll give another try if I find time.

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

No branches or pull requests

2 participants