slackhq / tree-sitter-hack

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

Add support for internal visibility modifier #67

Open andryak opened 6 months ago

andryak commented 6 months ago

Summary

Modern Hacklang introduced modules and the internal visibility modifier to mark methods and functions as only accessible from within the current module.

The Hacklang treesitter grammar doesn't support the internal visibility modifier yet. This diff addresses it.


Grammar tests pass:

tree-sitter generate
tree-sitter test

Requirements (place an x in each [ ])