(context: CompletionContext)
| 1904 | |
| 1905 | @completion_matcher(identifier="b_matcher", api_version=2) |
| 1906 | def b_matcher(context: CompletionContext): |
| 1907 | text = context.token |
| 1908 | result = {"completions": [SimpleCompletion("completion_b")]} |
| 1909 | |
| 1910 | if text == "suppress c": |
| 1911 | result["suppress"] = {"c_matcher"} |
| 1912 | |
| 1913 | if text.startswith("suppress all"): |
| 1914 | result["suppress"] = True |
| 1915 | if text == "suppress all but c": |
| 1916 | result["do_not_suppress"] = {"c_matcher"} |
| 1917 | if text == "suppress all but a": |
| 1918 | result["do_not_suppress"] = {"a_matcher"} |
| 1919 | |
| 1920 | return result |
| 1921 | |
| 1922 | @completion_matcher(identifier="c_matcher") |
| 1923 | def c_matcher(text): |
nothing calls this directly
no test coverage detected