Skip to content

Instantly share code, notes, and snippets.

@RobSis
Created April 18, 2013 08:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobSis/5411077 to your computer and use it in GitHub Desktop.
Save RobSis/5411077 to your computer and use it in GitHub Desktop.
The rules for ctags recognizing function and global variable definitions in QuakeC code.
--langdef=quakec
--langmap=quakec:.qc
--regex-quakec=/^[ \t]*(void|float|vector|string|entity)[ \t]*\([^(]*\)[ \t]*([a-zA-Z0-9_]+)[ \t]*\=/\2/f,functions/
--regex-quakec=/^[ \t]*\.?(float|vector|string|entity)[ \t]+([^();= ]+)[ \t]*(=.*)?;/\2/v,variable definitions/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment