ScopeOfSelection

What should the scope of the selection be?

Example 1

str = "string"; # select «"string"» and press ' to wrap
                # we probably want the scope not to be
                # string.quoted.double (where ' is 
                # disabled as a smart typing pair)

Example 2

<title>Foo</title>



<!-- select «Foo» and the
     scope should be text.html
  -->

Example 3

<?php # some code ?>



<!-- select entire tag and toggle
     comment, we want HTML comments,
     not PHP comments.
  -->