Title: Unify ImageJMacroTokenMaker with the new code completion functionality · Issue #23 · scijava/script-editor · GitHub
Open Graph Title: Unify ImageJMacroTokenMaker with the new code completion functionality · Issue #23 · scijava/script-editor
X Title: Unify ImageJMacroTokenMaker with the new code completion functionality · Issue #23 · scijava/script-editor
Description: 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...
Open Graph Description: 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 highlig...
X Description: 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 highlig...
Opengraph URL: https://github.com/scijava/script-editor/issues/23
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unify ImageJMacroTokenMaker with the new code completion functionality","articleBody":"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`](https://github.com/scijava/script-editor/blob/5478a77a64212f12e417cc3df153f604f378c858/src/main/java/org/scijava/ui/swing/script/highliters/ImageJMacroTokenMaker.java) in this repository.\r\n\r\nTo illustrate this, paste the following lines in the script editor:\r\n\r\n```javascript\r\ngetTitle() // is highlighted\r\nTable.applyMacro(code) // is not highlighted\r\n```\r\n\r\nLet's migrate [`IJ1MacroHighlighter`](https://github.com/scijava/script-editor/blob/5478a77a64212f12e417cc3df153f604f378c858/src/main/java/org/scijava/ui/swing/script/highliters/IJ1MacroHighlighter.java) 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.\r\n\r\n","author":{"url":"https://github.com/imagejan","@type":"Person","name":"imagejan"},"datePublished":"2018-06-28T12:37:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/23/script-editor/issues/23"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1fe2ed2a-038b-f94a-2efa-77274638c593 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C57E:26AEF0:46F083:61C71B:696E742F |
| html-safe-nonce | 8e2e7e96637103609dff73fb941c76a0d914c119560281643d7c68db69836c6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTdFOjI2QUVGMDo0NkYwODM6NjFDNzFCOjY5NkU3NDJGIiwidmlzaXRvcl9pZCI6Ijg2NDE1MjI2MDk4OTcyMzk1OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7db335ea08a34c423f4d7afc2db06c0a4fa6f44e83599c4cf65e8c9c9bb20bd4 |
| hovercard-subject-tag | issue:336603233 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/script-editor/23/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c48e0e96b961221307409517b4d6363f79c1a6c1c3c5817d0b38752dd3b6fcd7/scijava/script-editor/issues/23 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c48e0e96b961221307409517b4d6363f79c1a6c1c3c5817d0b38752dd3b6fcd7/scijava/script-editor/issues/23 |
| og:image:alt | 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 highlig... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imagejan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01185010a96388a2a8cd8bd7f5824fdf090522b219f9aecf8c7ff1857aeb489b |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/script-editor git https://github.com/scijava/script-editor.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 18536809 |
| octolytics-dimension-repository_nwo | scijava/script-editor |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18536809 |
| octolytics-dimension-repository_network_root_nwo | scijava/script-editor |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 673a80c1bce2a1e6a48b530ce2b72bf8fd253386 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width