So, I'm in the process of creating a sister tool for HoI, and while at it, I've implemented a few techniques that will make the ck2 syntax way less prone to errors. I've also found a way to take advantage of Sublime Text indexing capabilities so in the future we can use 'Go to definition', etc: the trick is that if the a file has a the name 'foo.bar.baz', Windows will take it that the extension is 'baz', but I can tell Sublime to apply a syntax for extension "bar.baz". In other words, if I tell the events syntax to auto apply it to all files with extensions 'events.txt', you can rename e.g. myEvents.txt to myEvents.events.txt, and the game will load the files fine and Sublime will highlight them automatically - incidentally, it also make my python hacks quite a bit cleaner than they were before.
So the only downside now is that you'll have longer filenames (and that you'll need to rename vanilla files if you want to lint them, but I'll make a menu command that makes that automatically for you).
That being said, if anyone uses OS X or Linux, can you test if those systems have the same behaviour regarding extensions? Otherwise, the technique would only be viable on Windows.
So the only downside now is that you'll have longer filenames (and that you'll need to rename vanilla files if you want to lint them, but I'll make a menu command that makes that automatically for you).
That being said, if anyone uses OS X or Linux, can you test if those systems have the same behaviour regarding extensions? Otherwise, the technique would only be viable on Windows.