This key defines a higher-order parser configuration that wraps a snippet string and allows it to repeat.
Appears in
└── Snippet
└── params
└── *
└── Repeating Parser ConfigurationType
Object
Properties
This key defines configuration options for repeating parser configurations.
The value is an object that can contain snippet, editor_key, output_delimiter, default_length, style, and optional properties. These options control which snippet configuration is repeated and how repetitions are handled.
Appears in: Repeating Parser Configuration.
Show examplesHide examples
In this example, we have configured repeating parser options with a snippet reference.
_snippets:
example:
snippet: <<example [[repeating_content]]>>
params:
repeating_content:
parser: repeating
options:
snippet: content{
"_snippets": {
"example": {
"snippet": "<<example [[repeating_content]]>>",
"params": {
"repeating_content": {
"parser": "repeating",
"options": {
"snippet": "content"
}
}
}
}
}
}This key defines the parser type for repeating parser configurations.
The value must be repeating. This specifies that the parameter uses the repeating parser, which allows a snippet configuration to appear multiple times.
Appears in: Repeating Parser Configuration.
Show examplesHide examples
In this example, we have configured a repeating parser for a snippet parameter.
_snippets:
example:
snippet: <<example [[repeating_content]]>>
params:
repeating_content:
parser: repeating
options:
snippet: content{
"_snippets": {
"example": {
"snippet": "<<example [[repeating_content]]>>",
"params": {
"repeating_content": {
"parser": "repeating",
"options": {
"snippet": "content"
}
}
}
}
}
}