I am parsing a language which uses % for marking comments. As ScriptWhitespace has # hard-coded for this purpose, I had to copy its code in order to change one letter.
Proposal: Extend ScriptWhitespace with a factory method custom for producing a Whitespace instance from a given string.