This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm not quite sure whether this is a bug in lexer, but http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-lexer/overview-summary.html says: Or it may be provided dynamically through the xml layer by using file named with the token-id's name with ".instance" suffix located in "Editors/language-mime-type/embed" folder. The file should instantiate the language description for the embedded language. This is how I try to register my language provider (the source for the language provider is attached): <folder name="Editors"> <folder name="text"> <folder name="x-java"> <folder name="embed"> <file name="BLOCK_COMMENT.instance"> <attr name="instanceCreate" newvalue="org.netbeans.modules.gwt4nb.JSNILanguageProvider"/> </file> </folder> </folder> </folder> </folder> But it does not work.
Created attachment 92872 [details] JSNILanguageProvider
Reassigning.
-
could somebody please at least confirm that this is a bug? A pointer to the module that is responsible for this would also be nice. I could try to provide a patch that fixes this.
You're right there was an error. I have fixed the docs and provided an example. The code that creates these embeddings is in lexer/nbbridge in MimeLookupFolderInfo. http://hg.netbeans.org/jet-main/rev/c59f8a616040
Integrated into 'main-golden', will be available in build *201205300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c59f8a616040 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #178987 - Language embedding does not work.