The brace matching works fine now, even in a .CBL document. I haven't given them a thorough workout yet, but get_window_type and error_message both seem to work well in my preliminary testing.
Just got done modifying my compiler error display macros to use the new error_message() function. This provided a dramatic simplification!! Thanks for being so responsive to questions and requests!