mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-10 14:21:00 +08:00
829a837a44
Delegate the definition of block comment start and end patterns to ScriptProvider classes instead of ScriptInfo. Move the functionality to handle Java block comments out of the base `GhidraScriptProvider` class into the `JavaScriptProvider` subclass. Default behavior is now to not support block comments and rely on extensions to implement these themselves. Add a number of tests for Java and Python `ScriptInfo` generation to ensure that scripts with no block comments, single-line block comments, and multi-line block comments are all handled appropriately. Add ScriptInfo tests for detailed Java and Python scripts including multiline descriptions and additional metadata flags.