Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Editor does not accept custom channels specifications #182

Open
JensFHansen opened this issue May 8, 2017 · 6 comments
Open

Editor does not accept custom channels specifications #182

JensFHansen opened this issue May 8, 2017 · 6 comments
Assignees

Comments

@JensFHansen
Copy link

Custom channels are now specified in lexer grammars using a new syntax. Example:

channels { WHITESPACE_CHANNEL, COMMENTS_CHANNEL }

However, the editor does not recognise this new syntax.

@HSorensen
Copy link
Member

Can you share your grammar ?

@JensFHansen
Copy link
Author

Sure. It's work in progress, but it is a valid lexer/parser grammer. They can be generated to Java without any errors.

CoolLexerParser.zip

@HSorensen
Copy link
Member

How about this for a start:
image

HSorensen added a commit to HSorensen/antlr4ide that referenced this issue May 9, 2017
Add lexer grammar syntax for channels { ... }
@HSorensen HSorensen self-assigned this May 9, 2017
@JensFHansen
Copy link
Author

Your changes seems right but how do I test it? (I'm a newbie w.r.t. Git and Eclipse Plugins).

@HSorensen
Copy link
Member

For now it is in my fork, but it is mixed with other changes I am doing. We should probably think about producing a new release soon. Stay tuned.

@diggernet
Copy link

Any update on releasing this fix?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants