Skip to content

Commit

Permalink
Add support for internal visibility modifier
Browse files Browse the repository at this point in the history
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.

Test Plan:

Grammar tests pass:
```
tree-sitter generate
tree-sitter test
```

Reviewers:

Subscribers:

Tasks:

Tags:
  • Loading branch information
andryak committed Mar 21, 2024
1 parent fca1e29 commit c7a78c7
Show file tree
Hide file tree
Showing 6 changed files with 191,882 additions and 198,167 deletions.
2 changes: 1 addition & 1 deletion grammar.js
2 changes: 1 addition & 1 deletion package.json
4 changes: 4 additions & 0 deletions src/grammar.json
8 changes: 6 additions & 2 deletions src/node-types.json
390,026 changes: 191,863 additions & 198,163 deletions src/parser.c
7 changes: 7 additions & 0 deletions test/corpus/declarations.txt

0 comments on commit c7a78c7

Please sign in to comment.