Your comments

You can also just try out this T-SQL bundle: https://github.com/adamv/tsql.tmbundle (I found it by searching for "t-sql tmbundle")
You can find documentation on TextMate Language Grammars on their website: http://manual.macromates.com/en/language_grammars

There is also a book on the subject: http://pragprog.com/book/textmate/textmate

The SQL TextMate bundle can be found on Github: https://github.com/textmate/sql.tmbundle

Textastic loads the Syntaxes/SQL.plist file.
This will be in the next version after Textastic 3.2.
I've finally hand a look at the crash reports. The problem happens when remote file listings are parsed. I've already changed this particular part of the code so it should be fixed in the next version.
Did you try to organize your files in folders instead? What's missing for you?
I don't want to publish numbers, but I'm happy with the amount of copies sold. More would probably cause too much support. I could live off of the sales of Textastic alone, but I have another popular app in Germany ("Rezepte") and a few apps I did with a business partner ("The Photo Cookbook", "History of Rock"...). So the App Store works if you are just a single developer and you know how to create great apps.
I'll consider it. I'm not sure if it can be persisted to flash memory but I'll try.
The undo history is cleared in two cases:
  • when you switch a file
  • when the iPad is running out of memory and requesting apps to free memory

I guess the second case is what happened in your case.