This key defines the literal string value that must be matched for literal parser configurations.
The value is a string that specifies the exact text that must appear in the snippet for the parameter to match.
Appears in#
Type#
string Required
Examples#
In this example, we have configured a literal value that must be matched.
Copied to clipboard
_snippets:
example:
snippet: <<example [[literal_param]]>>
params:
literal_param:
parser: literal
options:
literal: specific-value{
"_snippets": {
"example": {
"snippet": "<<example [[literal_param]]>>",
"params": {
"literal_param": {
"parser": "literal",
"options": {
"literal": "specific-value"
}
}
}
}
}
}