☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

string_boundary[*]

Table of contents

Description:

This key represents an individual string boundary token in the params.*(literal-parser-config).options.format.string_boundary array.

The value is a string that specifies a valid boundary token for strings. The parser will ensure the matched end token is the same as the start token.

Appears in:
└── Snippet
    └── params
        └── *
            └── Literal Parser Configuration
                └── options
                    └── format
                        └── string_boundary
                            └── [*]
Type:
string
Examples:

In this example, we have configured a string boundary to use double quotes for literal parser.

Copied to clipboard
_snippets:
  example:
    snippet: <<example [[literal_param]]>>
    params:
      literal_param:
        parser: literal
        options:
          literal: specific-value
          format:
            string_boundary:
              - '"'
{
  "_snippets": {
    "example": {
      "snippet": "<<example [[literal_param]]>>",
      "params": {
        "literal_param": {
          "parser": "literal",
          "options": {
            "literal": "specific-value",
            "format": {
              "string_boundary": [
                "\""
              ]
            }
          }
        }
      }
    }
  }
}
Open in a new tab