With the new IJ1 Macro auto-completion implemented by @haesleinhuepf, we get nice completions for all currently implemented macro functions, but not all of them are recognized by the syntax highlighter, because syntax highlighting relies on ImageJMacroTokenMaker in this repository.
To illustrate this, paste the following lines in the script editor:
getTitle() // is highlighted
Table.applyMacro(code) // is not highlighted
Let's migrate IJ1MacroHighlighter to imagej-legacy and unify the way how macro tokens are recognized, such that all functions that can be auto-completed will also be shown with a dedicated syntax color.
With the new IJ1 Macro auto-completion implemented by @haesleinhuepf, we get nice completions for all currently implemented macro functions, but not all of them are recognized by the syntax highlighter, because syntax highlighting relies on
ImageJMacroTokenMaker
in this repository.To illustrate this, paste the following lines in the script editor:
Let's migrate
IJ1MacroHighlighter
toimagej-legacy
and unify the way how macro tokens are recognized, such that all functions that can be auto-completed will also be shown with a dedicated syntax color.