Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when last line is a line comment #1

Closed
lantoli opened this issue Jan 21, 2013 · 3 comments
Closed

Error when last line is a line comment #1

lantoli opened this issue Jan 21, 2013 · 3 comments

Comments

@lantoli
Copy link

lantoli commented Jan 21, 2013

Hi,
if the last line of a Java source file is something like:
// my comment (no new line added)

it fails, I guess it's because LINE_COMMENT makes \n mandatory so there is not a match.

The error is:
line 187:0 extraneous input '/' expecting {, 'interface', 'abstract', 'strictfp', '@', 'class', 'public', 'private', 'final', 'static', 'protected', ';', 'enum'}

Thanks.

@cowang
Copy link
Contributor

cowang commented Jan 24, 2013

Ter,

Can you assign this to me so I can get some experience with making a change in GitHub?

George

@parrt
Copy link
Member

parrt commented Jan 24, 2013

Hi George: You can make a pull request with the appropriate changes :)

@cowang
Copy link
Contributor

cowang commented Feb 18, 2013

We can close issue #1 now, due to "Terence's change" (Pull request issue #5).

@parrt parrt closed this as completed Feb 18, 2013
parrt pushed a commit that referenced this issue Feb 21, 2013
parrt pushed a commit that referenced this issue Sep 4, 2014
parrt pushed a commit that referenced this issue Feb 20, 2015
Allow ranges in port mappings.
parrt pushed a commit that referenced this issue Jan 18, 2016
parrt pushed a commit that referenced this issue Apr 21, 2016
Merge from anltr:master
teverett pushed a commit that referenced this issue Sep 30, 2016
teverett pushed a commit that referenced this issue Jun 4, 2017
teverett added a commit that referenced this issue Jun 18, 2017
teverett pushed a commit that referenced this issue Nov 4, 2017
LexerAdaptor for csharp target
teverett pushed a commit that referenced this issue Mar 16, 2018
Merge pull request #1067 from smwikipedia/master
teverett pushed a commit that referenced this issue Aug 1, 2018
merge from base repository
teverett pushed a commit that referenced this issue Oct 9, 2018
teverett pushed a commit that referenced this issue Apr 12, 2020
teverett pushed a commit that referenced this issue May 10, 2020
teverett pushed a commit that referenced this issue Oct 21, 2020
teverett pushed a commit that referenced this issue Oct 29, 2020
teverett pushed a commit that referenced this issue Feb 24, 2021
Merge head repository in
teverett pushed a commit that referenced this issue Jan 31, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants