Just a couple minor features I needed for work:
- new -amd switch that automatically adds "define" and "require" to the known globals list, and removes duplicate named modules define("modulename",...) from the combined source file.
- stand-alone tokens or tokens that are the only contents of a string literal will be examined, and if they start with CurrentCulture, the dotted path will be resolved against the thread's CultureInfo.CurrentCulture object and replace the token. For example:
var monthNames = %CurrentCulture.DateTimeFormat.MonthNames%;
var percent = "%CurrentCulture.NumberFormat.PercentSymbol%";
will result in:
and the actual values will vary by the thread's current culture. If the culture isn't getting set elsewhere, you can set the thread's current culture with the -culture:LL-CC switch. This switch, however, will set the thread's current culture and not reset it back to what it was, so beware of any unintended side-effects.