The current TextMate Grammar in this project is heavily targeted towards Github scope names with matching colors.
For a general approach it would be worthwhile to have a grammar with unique scope names for each evaluated section / capturing group.
With such a grammar we could wrap these unique names in $uniqueScopeName$ and use some replacement logic to generate a file with uniqueScopeName and one with githubMappedScopeName from it.
This would allow to get rid of the double association of scope names and allow a more detailed syntax coloring. It would also make debugging the grammar in development much easier.
The current TextMate Grammar in this project is heavily targeted towards Github scope names with matching colors.
For a general approach it would be worthwhile to have a grammar with unique scope names for each evaluated section / capturing group.
With such a grammar we could wrap these unique names in
$uniqueScopeName$and use some replacement logic to generate a file withuniqueScopeNameand one withgithubMappedScopeNamefrom it.This would allow to get rid of the double association of scope names and allow a more detailed syntax coloring. It would also make debugging the grammar in development much easier.