MattMcFarland / ManiaScript.tmLanguage

Native tmLanguage Grammar for ManiaScript
2 stars 3 forks source link

Generated xml is not valid. #1

Closed reaby closed 7 years ago

reaby commented 7 years ago

there is still <>& and other characters inside tags, which makes it invalid and some ides doesn't understand the syntax since that.

Proposed fix would be to run html-entities enode for all nodes before plist generation. i did quick and very poor onliner fix:

const plistString = plist.build(JSON.parse(entities.encode(jsonString).replace(/\"/g,'"').replace(/.sm/g, ".ms")))

MattMcFarland commented 7 years ago

Thanks! I'll fix this

MattMcFarland commented 7 years ago

Hey, I believe this was fixed, please let me know if its working for you :)

reaby commented 7 years ago

Thanks. Working now!