Actually return the new grammar, as per the API
Actually return the new grammar, as per the API

Previously, the emitter didn't return the new type of grammar, just an undefined to signal when the grammar changed. This patch makes it so that the type of grammar is returned when the texteditor's grammar changes, as per what the API says it does
jlord/atom,Andrey-Pavlov/atom,jjz/atom,medovob/atom,hharchani/atom,devoncarew/atom,lovesnow/atom,qiujuer/atom,panuchart/atom,ilovezy/atom,mostafaeweda/atom,johnrizzo1/atom,oggy/atom,yalexx/atom,Hasimir/atom,Shekharrajak/atom,alexandergmann/atom,gabrielPeart/atom,ashneo76/atom,alexandergmann/atom,RobinTec/atom,kittens/atom,andrewleverette/atom,abcP9110/atom,YunchengLiao/atom,001szymon/atom,fedorov/atom,Andrey-Pavlov/atom,yalexx/atom,KENJU/atom,fang-yufeng/atom,abcP9110/atom,dsandstrom/atom,mnquintana/atom,alexandergmann/atom,burodepeper/atom,Austen-G/BlockBuilder,john-kelly/atom,YunchengLiao/atom,Andrey-Pavlov/atom,rmartin/atom,jlord/atom,amine7536/atom,mnquintana/atom,constanzaurzua/atom,lovesnow/atom,florianb/atom,yamhon/atom,Klozz/atom,einarmagnus/atom,G-Baby/atom,ReddTea/atom,scippio/atom,dannyflax/atom,fang-yufeng/atom,qiujuer/atom,FIT-CSE2410-A-Bombs/atom,paulcbetts/atom,kdheepak89/atom,Jandersolutions/atom,jlord/atom,nucked/atom,rmartin/atom,liuxiong332/atom,rlugojr/atom,bryonwinger/atom,hpham04/atom,stinsonga/atom,john-kelly/atom,Dennis1978/atom,sekcheong/atom,liuxiong332/atom,jacekkopecky/atom,fedorov/atom,kdheepak89/atom,G-Baby/atom,devmario/atom,AlbertoBarrago/atom,chfritz/atom,constanzaurzua/atom,stuartquin/atom,liuxiong332/atom,lisonma/atom,FoldingText/atom,batjko/atom,medovob/atom,codex8/atom,abcP9110/atom,wiggzz/atom,sotayamashita/atom,n-riesco/atom,kittens/atom,dannyflax/atom,pengshp/atom,stinsonga/atom,darwin/atom,Austen-G/BlockBuilder,kc8wxm/atom,ilovezy/atom,yangchenghu/atom,mnquintana/atom,RobinTec/atom,Galactix/atom,johnhaley81/atom,ardeshirj/atom,prembasumatary/atom,mostafaeweda/atom,CraZySacX/atom,ironbox360/atom,me6iaton/atom,sxgao3001/atom,Arcanemagus/atom,Jdesk/atom,RuiDGoncalves/atom,rsvip/aTom,fredericksilva/atom,KENJU/atom,Jandersoft/atom,oggy/atom,helber/atom,devoncarew/atom,omarhuanca/atom,Jandersolutions/atom,sotayamashita/atom,Neron-X5/atom,Rychard/atom,ardeshirj/atom,hpham04/atom,AlbertoBarrago/atom,me-benni/atom,me-benni/atom,kaicataldo/atom,deepfox/atom,ali/atom,vjeux/atom,dannyflax/atom,Neron-X5/atom,tmunro/atom,0x73/atom,jtrose2/atom,RobinTec/atom,jacekkopecky/atom,qskycolor/atom,Hasimir/atom,kittens/atom,Austen-G/BlockBuilder,targeter21/atom,Neron-X5/atom,basarat/atom,Ingramz/atom,tmunro/atom,nvoron23/atom,liuxiong332/atom,jacekkopecky/atom,n-riesco/atom,omarhuanca/atom,basarat/atom,mrodalgaard/atom,Locke23rus/atom,constanzaurzua/atom,omarhuanca/atom,liuderchi/atom,sxgao3001/atom,hagb4rd/atom,ReddTea/atom,phord/atom,bsmr-x-script/atom,Shekharrajak/atom,prembasumatary/atom,rookie125/atom,woss/atom,gzzhanghao/atom,Galactix/atom,SlimeQ/atom,liuxiong332/atom,BogusCurry/atom,jtrose2/atom,jjz/atom,ppamorim/atom,KENJU/atom,Sangaroonaom/atom,Mokolea/atom,GHackAnonymous/atom,gzzhanghao/atom,FoldingText/atom,florianb/atom,john-kelly/atom,mdumrauf/atom,brettle/atom,ivoadf/atom,vinodpanicker/atom,bencolon/atom,harshdattani/atom,constanzaurzua/atom,gisenberg/atom,harshdattani/atom,splodingsocks/atom,jjz/atom,bcoe/atom,paulcbetts/atom,hharchani/atom,chfritz/atom,amine7536/atom,russlescai/atom,lpommers/atom,harshdattani/atom,vinodpanicker/atom,mertkahyaoglu/atom,kjav/atom,seedtigo/atom,yangchenghu/atom,NunoEdgarGub1/atom,chengky/atom,johnhaley81/atom,vcarrera/atom,rookie125/atom,tjkr/atom,Abdillah/atom,Jandersolutions/atom,ppamorim/atom,palita01/atom,john-kelly/atom,fang-yufeng/atom,Jonekee/atom,phord/atom,tony612/atom,rxkit/atom,devoncarew/atom,isghe/atom,qskycolor/atom,NunoEdgarGub1/atom,MjAbuz/atom,Arcanemagus/atom,jordanbtucker/atom,Jonekee/atom,jtrose2/atom,FIT-CSE2410-A-Bombs/atom,batjko/atom,sillvan/atom,YunchengLiao/atom,0x73/atom,h0dgep0dge/atom,fedorov/atom,Ingramz/atom,stuartquin/atom,mdumrauf/atom,matthewclendening/atom,deepfox/atom,acontreras89/atom,ali/atom,devmario/atom,Klozz/atom,hagb4rd/atom,bencolon/atom,ali/atom,me-benni/atom,atom/atom,anuwat121/atom,decaffeinate-examples/atom,Austen-G/BlockBuilder,transcranial/atom,nvoron23/atom,kaicataldo/atom,toqz/atom,dsandstrom/atom,davideg/atom,targeter21/atom,originye/atom,RobinTec/atom,Ju2ender/atom,crazyquark/atom,niklabh/atom,kandros/atom,john-kelly/atom,Abdillah/atom,hakatashi/atom,alfredxing/atom,davideg/atom,darwin/atom,sebmck/atom,Sangaroonaom/atom,oggy/atom,vinodpanicker/atom,Jonekee/atom,YunchengLiao/atom,acontreras89/atom,tony612/atom,scippio/atom,ashneo76/atom,ppamorim/atom,Jandersoft/atom,elkingtonmcb/atom,yalexx/atom,ObviouslyGreen/atom,fredericksilva/atom,AlbertoBarrago/atom,hellendag/atom,fredericksilva/atom,deepfox/atom,matthewclendening/atom,kdheepak89/atom,Rodjana/atom,Ju2ender/atom,beni55/atom,basarat/atom,rlugojr/atom,wiggzz/atom,FoldingText/atom,bj7/atom,darwin/atom,fscherwi/atom,toqz/atom,basarat/atom,Hasimir/atom,burodepeper/atom,sillvan/atom,lovesnow/atom,yomybaby/atom,nrodriguez13/atom,svanharmelen/atom,champagnez/atom,rxkit/atom,ObviouslyGreen/atom,mostafaeweda/atom,pombredanne/atom,kandros/atom,mrodalgaard/atom,johnhaley81/atom,AdrianVovk/substance-ide,Jandersoft/atom,Jandersoft/atom,svanharmelen/atom,ppamorim/atom,targeter21/atom,NunoEdgarGub1/atom,jtrose2/atom,lisonma/atom,woss/atom,crazyquark/atom,Galactix/atom,ardeshirj/atom,Locke23rus/atom,abcP9110/atom,deoxilix/atom,isghe/atom,yalexx/atom,brettle/atom,ezeoleaf/atom,yomybaby/atom,nrodriguez13/atom,nucked/atom,gisenberg/atom,Andrey-Pavlov/atom,efatsi/atom,yomybaby/atom,sxgao3001/atom,bolinfest/atom,tisu2tisu/atom,SlimeQ/atom,anuwat121/atom,SlimeQ/atom,hharchani/atom,mdumrauf/atom,targeter21/atom,sillvan/atom,FoldingText/atom,svanharmelen/atom,batjko/atom,crazyquark/atom,CraZySacX/atom,kevinrenaers/atom,beni55/atom,andrewleverette/atom,deoxilix/atom,scv119/atom,Jandersolutions/atom,splodingsocks/atom,pombredanne/atom,vcarrera/atom,ykeisuke/atom,Jdesk/atom,FoldingText/atom,Locke23rus/atom,vjeux/atom,Abdillah/atom,scv119/atom,gisenberg/atom,tisu2tisu/atom,vcarrera/atom,BogusCurry/atom,folpindo/atom,dannyflax/atom,boomwaiza/atom,dkfiresky/atom,DiogoXRP/atom,Klozz/atom,h0dgep0dge/atom,mertkahyaoglu/atom,hagb4rd/atom,isghe/atom,lovesnow/atom,ivoadf/atom,pkdevbox/atom,Austen-G/BlockBuilder,jordanbtucker/atom,NunoEdgarGub1/atom,kc8wxm/atom,Ju2ender/atom,Dennis1978/atom,targeter21/atom,seedtigo/atom,jacekkopecky/atom,ykeisuke/atom,DiogoXRP/atom,decaffeinate-examples/atom,hellendag/atom,RuiDGoncalves/atom,florianb/atom,russlescai/atom,t9md/atom,Jdesk/atom,gabrielPeart/atom,xream/atom,KENJU/atom,pengshp/atom,vjeux/atom,Rychard/atom,Jandersoft/atom,daxlab/atom,fscherwi/atom,Sangaroonaom/atom,ezeoleaf/atom,dsandstrom/atom,ralphtheninja/atom,hagb4rd/atom,yomybaby/atom,g2p/atom,sillvan/atom,dkfiresky/atom,omarhuanca/atom,jjz/atom,prembasumatary/atom,acontreras89/atom,pombredanne/atom,rsvip/aTom,G-Baby/atom,rsvip/aTom,amine7536/atom,anuwat121/atom,bsmr-x-script/atom,Huaraz2/atom,tmunro/atom,AlexxNica/atom,nrodriguez13/atom,russlescai/atom,sebmck/atom,qiujuer/atom,charleswhchan/atom,RuiDGoncalves/atom,sotayamashita/atom,AdrianVovk/substance-ide,devmario/atom,nvoron23/atom,davideg/atom,charleswhchan/atom,tanin47/atom,gabrielPeart/atom,batjko/atom,sillvan/atom,scv119/atom,boomwaiza/atom,hpham04/atom,prembasumatary/atom,codex8/atom,me6iaton/atom,Jandersolutions/atom,dsandstrom/atom,rlugojr/atom,vjeux/atom,kevinrenaers/atom,toqz/atom,dkfiresky/atom,hpham04/atom,matthewclendening/atom,vinodpanicker/atom,atom/atom,sxgao3001/atom,lisonma/atom,n-riesco/atom,folpindo/atom,russlescai/atom,jordanbtucker/atom,rxkit/atom,devmario/atom,jlord/atom,mertkahyaoglu/atom,pengshp/atom,wiggzz/atom,liuderchi/atom,lpommers/atom,sekcheong/atom,efatsi/atom,sekcheong/atom,g2p/atom,ivoadf/atom,qskycolor/atom,tjkr/atom,Huaraz2/atom,woss/atom,charleswhchan/atom,johnrizzo1/atom,bryonwinger/atom,pkdevbox/atom,ralphtheninja/atom,jacekkopecky/atom,kaicataldo/atom,jeremyramin/atom,Rychard/atom,t9md/atom,YunchengLiao/atom,hakatashi/atom,001szymon/atom,tisu2tisu/atom,qskycolor/atom,acontreras89/atom,sekcheong/atom,lisonma/atom,dsandstrom/atom,ilovezy/atom,vjeux/atom,vinodpanicker/atom,jeremyramin/atom,einarmagnus/atom,seedtigo/atom,chengky/atom,cyzn/atom,pkdevbox/atom,fredericksilva/atom,ralphtheninja/atom,bj7/atom,dijs/atom,yalexx/atom,atom/atom,fang-yufeng/atom,NunoEdgarGub1/atom,hharchani/atom,synaptek/atom,Neron-X5/atom,KENJU/atom,pombredanne/atom,ezeoleaf/atom,daxlab/atom,chengky/atom,ReddTea/atom,nucked/atom,fedorov/atom,Galactix/atom,sebmck/atom,gontadu/atom,dkfiresky/atom,rsvip/aTom,amine7536/atom,folpindo/atom,matthewclendening/atom,synaptek/atom,AlisaKiatkongkumthon/atom,originye/atom,ilovezy/atom,lisonma/atom,helber/atom,jeremyramin/atom,tanin47/atom,Abdillah/atom,omarhuanca/atom,Neron-X5/atom,fang-yufeng/atom,panuchart/atom,bcoe/atom,FoldingText/atom,oggy/atom,Hasimir/atom,brumm/atom,g2p/atom,Arcanemagus/atom,hellendag/atom,einarmagnus/atom,ali/atom,splodingsocks/atom,MjAbuz/atom,vcarrera/atom,woss/atom,GHackAnonymous/atom,me6iaton/atom,AdrianVovk/substance-ide,alfredxing/atom,synaptek/atom,Abdillah/atom,vhutheesing/atom,Ingramz/atom,hakatashi/atom,prembasumatary/atom,gontadu/atom,basarat/atom,liuderchi/atom,liuderchi/atom,ezeoleaf/atom,champagnez/atom,cyzn/atom,rmartin/atom,me6iaton/atom,Ju2ender/atom,Galactix/atom,pombredanne/atom,kjav/atom,andrewleverette/atom,einarmagnus/atom,isghe/atom,qiujuer/atom,jtrose2/atom,synaptek/atom,deoxilix/atom,medovob/atom,Rodjana/atom,vcarrera/atom,toqz/atom,brumm/atom,Jdesk/atom,gisenberg/atom,Dennis1978/atom,dannyflax/atom,AlexxNica/atom,rookie125/atom,phord/atom,synaptek/atom,originye/atom,yamhon/atom,mrodalgaard/atom,bolinfest/atom,acontreras89/atom,GHackAnonymous/atom,constanzaurzua/atom,sxgao3001/atom,Shekharrajak/atom,transcranial/atom,Shekharrajak/atom,stinsonga/atom,crazyquark/atom,MjAbuz/atom,ObviouslyGreen/atom,0x73/atom,codex8/atom,kjav/atom,scv119/atom,crazyquark/atom,isghe/atom,oggy/atom,rmartin/atom,AlexxNica/atom,bsmr-x-script/atom,PKRoma/atom,devmario/atom,CraZySacX/atom,Austen-G/BlockBuilder,001szymon/atom,burodepeper/atom,n-riesco/atom,jlord/atom,codex8/atom,Mokolea/atom,helber/atom,FIT-CSE2410-A-Bombs/atom,t9md/atom,toqz/atom,tjkr/atom,panuchart/atom,ironbox360/atom,ReddTea/atom,alfredxing/atom,gontadu/atom,AlisaKiatkongkumthon/atom,jjz/atom,deepfox/atom,yamhon/atom,davideg/atom,Andrey-Pavlov/atom,tony612/atom,SlimeQ/atom,daxlab/atom,vhutheesing/atom,dijs/atom,splodingsocks/atom,fedorov/atom,elkingtonmcb/atom,paulcbetts/atom,amine7536/atom,ironbox360/atom,mostafaeweda/atom,batjko/atom,RobinTec/atom,ppamorim/atom,mostafaeweda/atom,tony612/atom,bryonwinger/atom,gzzhanghao/atom,einarmagnus/atom,BogusCurry/atom,kevinrenaers/atom,nvoron23/atom,deepfox/atom,lovesnow/atom,niklabh/atom,kandros/atom,charleswhchan/atom,dannyflax/atom,efatsi/atom,Hasimir/atom,yangchenghu/atom,abcP9110/atom,brumm/atom,qiujuer/atom,hakatashi/atom,bcoe/atom,mnquintana/atom,bencolon/atom,kc8wxm/atom,DiogoXRP/atom,kdheepak89/atom,johnrizzo1/atom,kc8wxm/atom,cyzn/atom,kjav/atom,AlisaKiatkongkumthon/atom,florianb/atom,vhutheesing/atom,ali/atom,GHackAnonymous/atom,xream/atom,basarat/atom,brettle/atom,charleswhchan/atom,lpommers/atom,Jdesk/atom,kjav/atom,yomybaby/atom,davideg/atom,chfritz/atom,SlimeQ/atom,xream/atom,hpham04/atom,chengky/atom,dkfiresky/atom,tony612/atom,bolinfest/atom,decaffeinate-examples/atom,ilovezy/atom,MjAbuz/atom,0x73/atom,florianb/atom,woss/atom,me6iaton/atom,codex8/atom,bj7/atom,sebmck/atom,Shekharrajak/atom,palita01/atom,devoncarew/atom,devoncarew/atom,elkingtonmcb/atom,matthewclendening/atom,chengky/atom,bcoe/atom,decaffeinate-examples/atom,Huaraz2/atom,nvoron23/atom,ashneo76/atom,Ju2ender/atom,tanin47/atom,gisenberg/atom,stuartquin/atom,kdheepak89/atom,niklabh/atom,russlescai/atom,bcoe/atom,sekcheong/atom,rmartin/atom,kc8wxm/atom,dijs/atom,Rodjana/atom,fscherwi/atom,qskycolor/atom,h0dgep0dge/atom,sebmck/atom,jacekkopecky/atom,boomwaiza/atom,PKRoma/atom,hagb4rd/atom,champagnez/atom,hharchani/atom,n-riesco/atom,PKRoma/atom,fredericksilva/atom,ykeisuke/atom,transcranial/atom,h0dgep0dge/atom,palita01/atom,MjAbuz/atom,beni55/atom,kittens/atom,ReddTea/atom,scippio/atom,mertkahyaoglu/atom,stinsonga/atom,Mokolea/atom,rsvip/aTom,GHackAnonymous/atom,mertkahyaoglu/atom,bryonwinger/atom,paulcbetts/atom,kittens/atom,mnquintana/atom