This is done via .tmPreferences files that identify specific scope names as defining symbols. For a simple example, take a look at Packages/Java/Symbol List Classes.tmPreferences. This declares that any scopes matching the "source.java meta.class meta.class.identifier" selector should appear in the symbol list.

The name of the .tmPreferences file isn't important, they'll all be scanned based on extension.