Created
January 17, 2018 16:02
-
-
Save hoop33/b0a33cf8fdcf4d64689f58efed75c15e to your computer and use it in GitHub Desktop.
.ctags entries for GraphQL
I added --regex-graphql=/^[ \t]*interface[ \t]+([_A-Za-z][_0-9A-Za-z]*)/\1/i,interface/
to also tag interfaces
Added --regex-graphql=/^[ \t]*union[ \t]+([_A-Za-z][_0-9A-Za-z]*)/\1/u,union/
to tag unions.
I added
--regex-graphql=/^[ \t]*interface[ \t]+([_A-Za-z][_0-9A-Za-z]*)/\1/i,interface/
to also tag interfaces
I'm seeing a ctags warning Don't reuse the kind letter
i' in a language graphql, so I put
.../n,interface/to avoid clashing with
.../i,input/`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good list @hoop33! I tried this but it didn't quite catch everything in my project, so I created my own with a few more keywords in it and used the
Name
regex from the GraphQL Working Draft: