tree-sitter / tree-sitter-c

C grammar for tree-sitter
MIT License
237 stars 106 forks source link

Add Microsoft SEH extension to the grammar #164

Closed DennySun2100 closed 1 year ago

DennySun2100 commented 1 year ago

This change is to make c/c++ parser be able to parse Microsoft SEH extension - try/except/finally/leave. Please refer to "SEH exception handling" in test/corpus/microsoft.txt for the test on this change.

amaanq commented 1 year ago

Alright I collapsed it into one commit and tidied up the test, let me know if that looks good @DennySun2020

DennySun2100 commented 1 year ago

e know if that lo Thanks Amaan, that looks good to me, should I close this PR now? Looks like I have no write access to merge this change to main branch?

amaanq commented 1 year ago

no worries, was just letting you check it out then I'l merge