Reverse engineer how the syntax packages work. That is the way most have done it here. The other way is to get lucky when the right person sees your thread and has time to answer.
This I can help with. Comment rules are found in Comment.tmPreferences files. So here is an example where I wanted to use the "::" commenting conventions in batch files: github.com/facelessuser/sublime ... references.
Take a look at other packages to see more examples. Hope that helps.