Add logging of missing or unexpected capture names in Tree-sitter queries (#37830)

Now logs warnings for unrecognized capture names and logs errors for
missing required captures.

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
cd2ecbbd27Michael Sloan committed on 9/12/2025, 9:01:16 PM· committed by GitHubparente71012a
3 files changedLine totals unavailable