Language file standard

What exactly is the standard that is used for the lang-files?
It seems to come close to INI, but it’s not because it allows to have escape characters (INI file - Wikipedia)
For a module development it wasn’t possible for me to use Transifex and I ended up with another provider, localazy. Now it’s kind of trial and error to find out the specs.