29.4.2.1 Source File Tag Syntax

Here is how tag syntax is defined for the most popular languages:

Several other languages are also supported:

You can also generate tags based on regexp matching (see Etags Regexps) to handle other formats and languages.