mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 20:41:49 +03:00
Merge remote-tracking branch 'krobelus/complete-at-percent-delimiter'
This commit is contained in:
commit
cde67c25aa
@ -245,8 +245,9 @@ Token parse_percent_token(ParseState& state, bool throw_on_unterminated)
|
||||
++state.pos;
|
||||
StringView type_name{type_start, state.pos};
|
||||
|
||||
bool at_end = state.pos == state.str.end();
|
||||
const Codepoint opening_delimiter = utf8::read_codepoint(state.pos, state.str.end());
|
||||
if (not state or iswalpha(opening_delimiter))
|
||||
if (at_end or iswalpha(opening_delimiter))
|
||||
{
|
||||
if (throw_on_unterminated)
|
||||
throw parse_error{format("expected a string delimiter after '%{}'",
|
||||
|
Loading…
Reference in New Issue
Block a user