Documentation
¶
Index ¶
- func BackslashEscapesNext(quote, current byte, hasNext bool) bool
- func CanStartQuote(source string, position, start int) bool
- func DecodeDoubleQuotedString(source string) (string, error)
- func HashStartsIteratorExpression(source string, index int) bool
- func IsHashLineComment(source string, index int) bool
- func IsHeaderComment(text string) bool
- func NormalizeNumericSeparators(raw string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackslashEscapesNext ¶ added in v0.81.3
BackslashEscapesNext reports whether the current backslash consumes the following byte in a quoted string. Backtick strings are raw.
func CanStartQuote ¶
CanStartQuote reports whether a quote at position begins a quoted value within the source region starting at start.
func DecodeDoubleQuotedString ¶ added in v0.94.1
DecodeDoubleQuotedString decodes a complete double-quoted literal using the same grammar as expr-lang. Plain, valid literals return a source substring without allocation; escaped or unusual source is parsed by expr-lang.
func HashStartsIteratorExpression ¶ added in v0.95.0
HashStartsIteratorExpression checks for the expression forms supported by Flow's projection hash placeholder without parsing or allocating.
func IsHashLineComment ¶ added in v0.95.0
IsHashLineComment distinguishes a line-leading expression comment from an iterator placeholder followed by a selector or operator.
func IsHeaderComment ¶
IsHeaderComment reports whether text begins with a supported whole-line comment marker.
func NormalizeNumericSeparators ¶ added in v0.95.0
NormalizeNumericSeparators validates and removes digit-grouping underscores from a numeric literal.
Types ¶
This section is empty.