|
|
Re: Custom External Lexer xText 2.10 [message #1737653 is a reply to message #1737477] |
Mon, 11 July 2016 15:06 |
|
I don't know whether we have migrated the ExternalAntlrLexerFragment functionality. You could try the adapter as mentioned by Jan:
fragment = org.eclipse.xtext.generator.adapter.FragmentAdapter {
fragment = parser.antlr.ex.ExternalAntlrLexerFragment {
// A grammar file with .g will be expected in this package (should be stored in src folder)
lexerGrammar = "com.group.xxx.xtext.customlexer.CustomEditorLexer"
runtime = true
antlrParam = "-lib"
// This is the folder where the lexer will be created
antlrParam = "${runtimeProject}/src-gen/com/group/xxx/xtext/customlexer"
}
}
Add that to the StandardLanguage or, if that doesn't work, replace StandardLanguage by XtextGeneratorLanguage as described in the documentation:
https://www.eclipse.org/Xtext/documentation/302_configuration.html#language-configuration
|
|
|
Powered by
FUDForum. Page generated in 0.03350 seconds