[foldcode addon] Fix off-by-one error when determining brace type in braceRangeFinder
[foldcode addon] Fix off-by-one error when determining brace type in braceRangeFinder

Closes #1185

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