MCPcopy Create free account
hub / github.com/cel-expr/cel-go / EnableIdentEscapeSyntax

Function EnableIdentEscapeSyntax

parser/options.go:134–139  ·  view source on GitHub ↗

EnableIdentEscapeSyntax enables backtick (`) escaped field identifiers. This supports extended types of characters in identifiers, e.g. foo.`baz-bar`.

(enableIdentEscapeSyntax bool)

Source from the content-addressed store, hash-verified

132// EnableIdentEscapeSyntax enables backtick (`) escaped field identifiers. This
133// supports extended types of characters in identifiers, e.g. foo.`baz-bar`.
134func EnableIdentEscapeSyntax(enableIdentEscapeSyntax bool) Option {
135 return func(opts *options) error {
136 opts.enableIdentEscapeSyntax = enableIdentEscapeSyntax
137 return nil
138 }
139}
140
141// EnableHiddenAccumulatorName uses an accumulator variable name that is not a
142// normally accessible identifier in source for comprehension macros. Compatibility notes:

Callers 3

configureMethod · 0.92
parser_test.goFile · 0.85
TestUnparseFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestUnparseFunction · 0.68