[comment addon] Avoid killing block comments outside selection
[comment addon] Avoid killing block comments outside selection

Currently, if you perform the uncomment command with the cursor outside a single-line block comment, it will uncomment that block comment. This is unfortunate behavior for cases where the block comment is used to describe the parameter to a function like "foo(/* index */ 0)". It's also inconsistent: if you have a selection and a single-line block comment after the end of the selection, uncomment() will do nothing, however if you have a selection with a single-line block comment *before* the selection, it will line-comment out all the lines of the selection instead.

This also isn't a complete fix, but significantly reduces the scope of the problem. For example if you have "/* foo */ bar /* baz */", uncomment() still does the wrong thing when the cursor is on foo or baz.

mightyguava/CodeMirror,amshali/CodeMirror,KamranMackey/CodeMirror,matthewbauer/CodeMirror,vincentwoo/CodeMirror,skylarkcob/CodeMirror,pjkui/CodeMirror,mtaran-google/CodeMirror,sanyaade-iot/CodeMirror,AlanWasTaken/codemirror,karthikeyansam/CodeMirror,r7kamura/CodeMirror,qiankun007/CodeMirror,ssxxue/CodeMirror,bluesh55/CodeMirror,pinbe/CodeMirror,d0liver/CodeMirror,happibum/CodeMirror-main,nightwing/CodeMirror,r7kamura/CodeMirror,wingify/CodeMirror,pabloferz/CodeMirror,morrisonwudi/CodeMirror,hackmdio/CodeMirror,apatawari/CodeMirror,kangkot/CodeMirror,apatawari/CodeMirror,tpphu/CodeMirror,belph/CodeMirror,shiren/CodeMirror,kerabromsmu/CodeMirror,supriyantomaftuh/CodeMirror,InternetGuru/CodeMirror,jkaplon/CodeMirror,joshterrell805-historic/CodeMirror,qweasd1/CodeMirror,GerHobbelt/CodeMirror2,namin/CodeMirror,Icenium/CodeMirror,Aliccer/CodeMirror,KamranMackey/CodeMirror,AlanWasTaken/codemirror,kangkot/CodeMirror,NeZaMy/CodeMirror2,ficristo/CodeMirror,skylarkcob/CodeMirror,kerabromsmu/CodeMirror,bgrins/CodeMirror,ksanaforge/CodeMirror,pinbe/CodeMirror,anthonygego/CodeMirror,davidpham87/CodeMirror,schanzer/CodeMirror,INTELOGIE/CodeMirror,EasonYi/CodeMirror,INTELOGIE/CodeMirror,ksanaforge/CodeMirror,jessegrosjean/CodeMirror,nightwing/CodeMirror,mihailik/CodeMirror,Icenium/CodeMirror,sekcheong/CodeMirror,rasata/CodeMirror,Jisuanke/CodeMirror,jessegrosjean/CodeMirror,ZombieHippie/CodeMirror,skylarkcob/CodeMirror,ejgallego/CodeMirror,vincentwoo/CodeMirror,alur/CodeMirror,TechnicalPursuit/CodeMirror,elisee/CodeMirror,dbarnett/CodeMirror,grzegorzmazur/CodeMirror,pjkui/CodeMirror,adobe/CodeMirror2,symbla/CodeMirror,buchslava/CodeMirror,ashmind/CodeMirror,schanzer/CodeMirror,kuangyeheng/CodeMirror,Navaneethsen/CodeMirror,agendor/CodeMirror,SidPresse/CodeMirror,MarcelGerber/CodeMirror,mizchi/CodeMirror,pabloferz/CodeMirror,melpon/CodeMirror,camellhf/CodeMirror,sekcheong/CodeMirror,NumbersInternational/CodeMirror,antimatter15/CodeMirror,INTELOGIE/CodeMirror,jayaprabhakar/CodeMirror,pjkui/CodeMirror,ZombieHippie/CodeMirror,symbla/CodeMirror,supriyantomaftuh/CodeMirror,bgrins/CodeMirror,nawroth/CodeMirror,DustinH/CodeMirror,axter/CodeMirror,michaelerobertsjr/CodeMirror,davidpham87/CodeMirror,EasonYi/CodeMirror,namin/CodeMirror,Allenice/CodeMirror,nawroth/CodeMirror,loopspace/CodeMirror,karevn/CodeMirror,hccampos/CodeMirror,ksanaforge/CodeMirror,Jisuanke/CodeMirror,rasata/CodeMirror,buchslava/CodeMirror,jkaplon/CodeMirror,wingify/CodeMirror,dbarnett/CodeMirror,mizchi/CodeMirror,sanyaade-iot/CodeMirror,adobe/CodeMirror2,codio/CodeMirror,xeronith/CodeMirror,shiren/CodeMirror,Allenice/CodeMirror,melpon/CodeMirror,Dominator008/CodeMirror,dudb/CodeMirror,rustemferreira/CodeMirror,karevn/CodeMirror,systay/CodeMirror,trumanliu/CodeMirror,dbarnett/CodeMirror,kevinushey/CodeMirror,buchslava/CodeMirror,joshterrell805-historic/CodeMirror,vincentwoo/CodeMirror,antimatter15/CodeMirror,pabloferz/CodeMirror,ficristo/CodeMirror,notepadqq/CodeMirror,sgoo/CodeMirror,Dominator008/CodeMirror,webida/CodeMirror,adobe/CodeMirror2,kerabromsmu/CodeMirror,Navaneethsen/CodeMirror,sanyaade-iot/CodeMirror,amshali/CodeMirror,philuchansky/CodeMirror,SidPresse/CodeMirror,InternetGuru/CodeMirror,elisee/CodeMirror,MarcelGerber/CodeMirror,supriyantomaftuh/CodeMirror,Aliccer/CodeMirror,djadmin/CodeMirror,flyskyko/CodeMirror,wbinnssmith/CodeMirror,melpon/CodeMirror,belph/CodeMirror,fmoliveira/CodeMirror,xeronith/CodeMirror,mtaran-google/CodeMirror,mightyguava/CodeMirror,happibum/CodeMirror-main,morrisonwudi/CodeMirror,crazy4chrissi/CodeMirror,abdelouahabb/CodeMirror,kuangyeheng/CodeMirror,Navaneethsen/CodeMirror,philuchansky/CodeMirror,karthikeyansam/CodeMirror,AlanWasTaken/codemirror,loopspace/CodeMirror,NeZaMy/CodeMirror2,tpphu/CodeMirror,hackmdio/CodeMirror,crazy4chrissi/CodeMirror,dperetti/CodeMirror,dudb/CodeMirror,hccampos/CodeMirror,camellhf/CodeMirror,TechnicalPursuit/CodeMirror,bgrins/CodeMirror,cintiamh/CodeMirror,thomasjm/CodeMirror,TDaglis/CodeMirror,shiren/CodeMirror,rustemferreira/CodeMirror,loopspace/CodeMirror,matthewbauer/CodeMirror,kevinushey/CodeMirror,sekcheong/CodeMirror,belph/CodeMirror,codio/CodeMirror,antimatter15/CodeMirror,crazy4chrissi/CodeMirror,ThebingServices/CodeMirror,r7kamura/CodeMirror,NumbersInternational/CodeMirror,davidpham87/CodeMirror,anthonygego/CodeMirror,dperetti/CodeMirror,alur/CodeMirror,rrandom/CodeMirror,axter/CodeMirror,hccampos/CodeMirror,systay/CodeMirror,dudb/CodeMirror,sourcelair/CodeMirror,bluesh55/CodeMirror,ashmind/CodeMirror,Allenice/CodeMirror,Dominator008/CodeMirror,kk9599/CodeMirror,jpolitz/CodeMirror,trumanliu/CodeMirror,pinbe/CodeMirror,michaelerobertsjr/CodeMirror,happibum/CodeMirror-main,Ermlab/CodeMirror,qiankun007/CodeMirror,amshali/CodeMirror,axter/CodeMirror,isdampe/CodeMirror,manderson23/CodeMirror,vanloswang/CodeMirror,mihailik/CodeMirror,ZombieHippie/CodeMirror,rrandom/CodeMirror,qiankun007/CodeMirror,alur/CodeMirror,philuchansky/CodeMirror,webida/CodeMirror,ashmind/CodeMirror,sourcelair/CodeMirror,hackmdio/CodeMirror,mizchi/CodeMirror,NeZaMy/CodeMirror2,TDaglis/CodeMirror,fmoliveira/CodeMirror,schanzer/CodeMirror,d0liver/CodeMirror,jayaprabhakar/CodeMirror,ssxxue/CodeMirror,isdampe/CodeMirror,GerHobbelt/CodeMirror2,karevn/CodeMirror,thomasjm/CodeMirror,systay/CodeMirror,jpolitz/CodeMirror,kk9599/CodeMirror,bfrohs/CodeMirror,fivetran/CodeMirror,nawroth/CodeMirror,fmoliveira/CodeMirror,increpare/CodeMirror,Aliccer/CodeMirror,xeronith/CodeMirror,isdampe/CodeMirror,bocharsky-bw/CodeMirror,manderson23/CodeMirror,webida/CodeMirror,TDaglis/CodeMirror,kangkot/CodeMirror,d0liver/CodeMirror,karthikeyansam/CodeMirror,qweasd1/CodeMirror,increpare/CodeMirror,djadmin/CodeMirror,qweasd1/CodeMirror,kuangyeheng/CodeMirror,matthewbauer/CodeMirror,codio/CodeMirror,jpolitz/CodeMirror,mtaran-google/CodeMirror,tpphu/CodeMirror,symbla/CodeMirror,sgoo/CodeMirror,gkoberger/CodeMirror,morrisonwudi/CodeMirror,namin/CodeMirror,rustemferreira/CodeMirror,cintiamh/CodeMirror,fivetran/CodeMirror,bfrohs/CodeMirror,ThebingServices/CodeMirror,KamranMackey/CodeMirror,DustinH/CodeMirror,NumbersInternational/CodeMirror,nightwing/CodeMirror,abdelouahabb/CodeMirror,SidPresse/CodeMirror,rrandom/CodeMirror,ejgallego/CodeMirror,vanloswang/CodeMirror,bfrohs/CodeMirror,grzegorzmazur/CodeMirror,agendor/CodeMirror,anthonygego/CodeMirror,kk9599/CodeMirror,DustinH/CodeMirror,webida/CodeMirror,gkoberger/CodeMirror,MarcelGerber/CodeMirror,jkaplon/CodeMirror,vanloswang/CodeMirror,apatawari/CodeMirror,trumanliu/CodeMirror,increpare/CodeMirror,notepadqq/CodeMirror,agendor/CodeMirror,gkoberger/CodeMirror,rasata/CodeMirror,mihailik/CodeMirror,wingify/CodeMirror,jayaprabhakar/CodeMirror,flyskyko/CodeMirror,TechnicalPursuit/CodeMirror,Icenium/CodeMirror,InternetGuru/CodeMirror,ficristo/CodeMirror,grzegorzmazur/CodeMirror,notepadqq/CodeMirror,jessegrosjean/CodeMirror,dperetti/CodeMirror,cintiamh/CodeMirror,Ermlab/CodeMirror,ssxxue/CodeMirror,abdelouahabb/CodeMirror,camellhf/CodeMirror,elisee/CodeMirror,flyskyko/CodeMirror,djadmin/CodeMirror,manderson23/CodeMirror,bocharsky-bw/CodeMirror,michaelerobertsjr/CodeMirror,Jisuanke/CodeMirror,thomasjm/CodeMirror,ThebingServices/CodeMirror,ejgallego/CodeMirror,bocharsky-bw/CodeMirror,wbinnssmith/CodeMirror,mightyguava/CodeMirror,bluesh55/CodeMirror,sourcelair/CodeMirror,EasonYi/CodeMirror