I have created my own tmlanguage file, everything in it works fine, but there is a plugin that I am trying to write that copies the text in the current scope using the the view.extract_scope(region) command, which will be used as a keyboard shortcut to copy command definitions in this syntax. This works great when I add
to my patterns array, but it removes all syntax highlighting for anything within that scope. I do also have it using the foldingstartmarker and foldingstopmarker for code folding, even though it says that those are not currently supported, it has worked for me since ST2. I guess what I am really looking for is how to add an extra scope to a region without messing with the color scheme for the area.