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 0ee82f6
Show file tree
Hide file tree
Showing 5 changed files with 191,881 additions and 198,166 deletions.
2 changes: 1 addition & 1 deletion grammar.js
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 0ee82f6

Please sign in to comment.