helixbass / tree-sitter-grep

The Unlicense
11 stars 1 forks source link

Exploration: supported languages as "singleton values": macros #53

Closed helixbass closed 1 year ago

helixbass commented 1 year ago

In this PR:

To test: You should see the fixed_map!() macro fail if you try to omit any keys, pass any spurious key/values or not pass corresponding values of the expected type You should see the by_supported_language!() macro fail if you omit any supported languages or pass any unknown keys

Based on supported-languages-fixed-size