Skip to content

Commit

Permalink
Restore comment spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Richtermeister committed Nov 16, 2023
1 parent 131d821 commit dc3892d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions parsing.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ func readTokenUntilFalse(stream *lexerStream, condition func(rune) bool) string
}

/*
Returns the string that was read until the given [condition] was false, or whitespace was broken.
Returns false if the stream ended before whitespace was broken or condition was met.
Returns the string that was read until the given [condition] was false, or whitespace was broken.
Returns false if the stream ended before whitespace was broken or condition was met.
*/
func readUntilFalse(stream *lexerStream, includeWhitespace bool, breakWhitespace bool, allowEscaping bool, condition func(rune) bool) (string, bool) {

Expand Down Expand Up @@ -345,8 +345,8 @@ func readUntilFalse(stream *lexerStream, includeWhitespace bool, breakWhitespace
}

/*
Checks to see if any optimizations can be performed on the given [tokens], which form a complete, valid expression.
The returns slice will represent the optimized (or unmodified) list of tokens to use.
Checks to see if any optimizations can be performed on the given [tokens], which form a complete, valid expression.
The returns slice will represent the optimized (or unmodified) list of tokens to use.
*/
func optimizeTokens(tokens []ExpressionToken) ([]ExpressionToken, error) {

Expand Down Expand Up @@ -518,9 +518,9 @@ func isNotClosingBracket(character rune) bool {
}

/*
Attempts to parse the [candidate] as a Time.
Tries a series of standardized date formats, returns the Time if one applies,
otherwise returns false through the second return.
Attempts to parse the [candidate] as a Time.
Tries a series of standardized date formats, returns the Time if one applies,
otherwise returns false through the second return.
*/
func tryParseTime(candidate string) (time.Time, bool) {

Expand Down

0 comments on commit dc3892d

Please sign in to comment.