Skip to content

Instantly share code, notes, and snippets.

@hoop33
Created January 17, 2018 16:02
Show Gist options
  • Save hoop33/b0a33cf8fdcf4d64689f58efed75c15e to your computer and use it in GitHub Desktop.
Save hoop33/b0a33cf8fdcf4d64689f58efed75c15e to your computer and use it in GitHub Desktop.
.ctags entries for GraphQL
--langdef=graphql
--langmap=graphql:.graphql
--regex-graphql=/^type[ \t]+([^{]+){/\1/t,type/
--regex-graphql=/^input[ \t]+([^{]+){/\1/i,input/
--regex-graphql=/^[ \t]*([a-zA-Z]+)\(/\1/f,func/
@jszwedko
Copy link

I added --regex-graphql=/^[ \t]*interface[ \t]+([_A-Za-z][_0-9A-Za-z]*)/\1/i,interface/ to also tag interfaces

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