Match Unicode characters back to Unicode name Same as :any:`back_unicode_name_matches`, but adopted to new Matcher API.
(context: CompletionContext)
| 1720 | |
| 1721 | @context_matcher() |
| 1722 | def back_unicode_name_matcher(context: CompletionContext): |
| 1723 | """Match Unicode characters back to Unicode name |
| 1724 | |
| 1725 | Same as :any:`back_unicode_name_matches`, but adopted to new Matcher API. |
| 1726 | """ |
| 1727 | fragment, matches = back_unicode_name_matches(context.text_until_cursor) |
| 1728 | return _convert_matcher_v1_result_to_v2( |
| 1729 | matches, type="unicode", fragment=fragment, suppress_if_matches=True |
| 1730 | ) |
| 1731 | |
| 1732 | |
| 1733 | def back_unicode_name_matches(text: str) -> tuple[str, Sequence[str]]: |
nothing calls this directly
no test coverage detected
searching dependent graphs…