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

Make lexer discard comments entirely #394

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

gromgit
Copy link
Contributor

@gromgit gromgit commented Aug 5, 2020

Alternate solution to #388 (previous solution at #393). This one causes the lexer to skip over comments entirely, so no comment tokens are passed upwards that need to be dealt with.

@gromgit gromgit mentioned this pull request Aug 5, 2020
@gromgit
Copy link
Contributor Author

gromgit commented Aug 5, 2020

Just to confirm, pretty much all the two errors (TestCommand and TestEnv) that appear for my PR in Travis CI are also appearing when I run go test on the current master branch. Is that to be expected?

@odino
Copy link
Collaborator

odino commented Aug 5, 2020 via email

@gromgit gromgit force-pushed the lexer_dump_comments branch from 34d6705 to 17f0029 Compare August 5, 2020 12:57
@gromgit
Copy link
Contributor Author

gromgit commented Aug 5, 2020

Huh, looks like my copy of the master branch isn't what it's supposed to be. Will probably have to re-clone when this PR is done.

Anyway, I've fixed the test case. Turned out I misinterpreted how the test case worked.

lexer/lexer.go Outdated Show resolved Hide resolved
Alternate solution to abs-lang#388 (previous solution at abs-lang#393). This one skips over comments entirely, so no comment tokens are passed to callers.
@gromgit gromgit force-pushed the lexer_dump_comments branch from 17f0029 to 69705c8 Compare August 6, 2020 04:29
@gromgit gromgit requested a review from odino August 6, 2020 04:44
@odino odino changed the base branch from master to 2.3.x August 11, 2020 06:38
@odino odino merged commit 8326f32 into abs-lang:2.3.x Aug 14, 2020
@odino odino added this to the 2.3.x milestone Aug 14, 2020
@gromgit gromgit deleted the lexer_dump_comments branch August 14, 2020 15:56
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

Successfully merging this pull request may close these issues.

2 participants