8000 bugfix: put tokenmakers in hashmap with the same name which is search… · scijava/script-editor@18c9578 · GitHub
[go: up one dir, main page]

Skip to content

Commit 18c9578

Browse files
author
haesleinhuepf
committed
bugfix: put tokenmakers in hashmap with the same name which is searched for later
1 parent 91fadb6 commit 18c9578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/ui/swing/script/TextEditor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ private synchronized void initializeTokenMakers() {
935935
for (final PluginInfo<SyntaxHighlighter> info : pluginService
936936
.getPluginsOfType(SyntaxHighlighter.class))
937937
try {
938-
tokenMakerFactory.putMapping("text/" + info.getName(), info
938+
tokenMakerFactory.putMapping("text/" + info.getName().toLowerCase().replace(' ', '-'), info
939939
.getClassName());
940940
}
941941
catch (final Throwable t) {

0 commit comments

Comments
 (0)
0