Delimiter that is inserted before the completion when a completion creates a completely new token and no other delimiter is already present (and we're not at the beginning of the file).
Delimiter that is inserted before the completion when a completion creates a completely new token and no other delimiter is already present (and we're not at the beginning of the file).
The purpose of this is to make '"if", ctrl+space, select "myCond"' complete to "if myCond" rather than "ifmyCond" (in a language where "myCond" would be a valid token after "if").
If a space is not a suitable token delimiter in your language, override this to something that is.
Set a custom description for the given parser.
Set a custom description for the given parser. This will show up in "Expected X, but got Y" error messages instead of the token list generated by default.
Matches at the end of file.
Matches at the end of file. Using this rule instead of token(EOF) prevents an empty string from being added
to the completions list.
Parser that fails unconditionally.
Parser that fails unconditionally.
This is useful as a default when combining a possibly-empty list of parsers with | for example.
This rule matches a token if the given function is defined for that function.
This rule matches a token if the given function is defined for that function. If so the result is a Success whose value is the
return value of the function. Otherwise the rule fails.
This rule matches a token if the given function is defined for that function.
This rule matches a token if the given function is defined for that function. If so the result is a Success whose value is the
return value of the function. Otherwise the rule fails.
Matches one or more occurrences of rep separated by sep and produces a list of the results if successful.
Matches zero or more occurrences of rep separated by sep and produces a list of the results.
Succeeds unconditionally and without consuming tokens.
Succeeds unconditionally and without consuming tokens. The resulitng Success object will contain
result as its result value.
This rule matches the given token and fails on any other token.
This rule matches the given token and fails on any other token.
This rule matches the given token and fails on any other token.
The given docstring will be used as the documentation for the completion produced for this token.