scijava / script-editor

Script Editor and Interpreter for SciJava script languages
http://imagej.net/Script_Editor
BSD 2-Clause "Simplified" License
12 stars 12 forks source link

Unify ImageJMacroTokenMaker with the new code completion functionality #23

Open imagejan opened 6 years ago

imagejan commented 6 years ago

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.