Skip to content

Comments

[WIP] Fix #324 - check for more than one consecutive empty lines#447

Closed
wilzbach wants to merge 1 commit intodlang-community:masterfrom
wilzbach:consecutive_empty_lines2
Closed

[WIP] Fix #324 - check for more than one consecutive empty lines#447
wilzbach wants to merge 1 commit intodlang-community:masterfrom
wilzbach:consecutive_empty_lines2

Conversation

@wilzbach
Copy link
Member

@wilzbach wilzbach commented Jun 12, 2017

#Hmm, it seems that comments aren't part of the token stream even with CommentBehavior.intern as they are always removed by the lexer.

Any ideas how I could do this check without access to the raw source code, then?

For reference, the code currently prints:

typevoid line: 2
typeidentifier line: 2
type( line: 2
type) line: 2
type{ line: 2
type} line: 2
typevoid line: 5
typeidentifier line: 5
type( line: 5
type) line: 5
type{ line: 5
type} line: 5
typevoid line: 2
typeidentifier line: 2
type( line: 2
type) line: 2
type{ line: 2
type} line: 2
typevoid line: 5
typeidentifier line: 5
type( line: 5
type) line: 5
type{ line: 5
type} line: 5

@wilzbach wilzbach force-pushed the consecutive_empty_lines2 branch from c5c7fff to 3b23cf9 Compare June 19, 2017 13:49
@wilzbach
Copy link
Member Author

(Rebased)

@ghost ghost added the has conflicts label Aug 19, 2017
@ghost
Copy link

ghost commented Dec 20, 2018

I'm doing a bit of cleanup and close this since it's been abandoned.

@ghost ghost closed this Dec 20, 2018
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant