Skip to content

Instantly share code, notes, and snippets.

@ncdc
Created May 7, 2014 14:41
Show Gist options
  • Save ncdc/23ca3420f9f8022982e2 to your computer and use it in GitHub Desktop.
Save ncdc/23ca3420f9f8022982e2 to your computer and use it in GitHub Desktop.
--langdef=go
--langmap=go:.go
--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/f,func/
--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/v,var/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment