slackhq / tree-sitter-hack

Hack grammar for tree-sitter
MIT License
33 stars 16 forks source link

Add contexts and capabilities #48

Closed 4e554c4c closed 2 years ago

4e554c4c commented 2 years ago

Summary

fixes #47 See https://docs.hhvm.com/hack/contexts-and-capabilities/context-constants for more information.

i have broken down this PR into two commits, which each add a subset of the grammar. The first adds capability lists to functions, lambdas, anonymous functions and function types. The next adds constant context variables to classes and interfaces.

Requirements (place an x in each [ ])