Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
- name: Run tests
uses: tree-sitter/parser-test-action@v3
with:
generate: false
generate: true
test-rust: true
test-node: true
test-node: false
test-python: false
test-go: true
test-go: false
test-swift: false
- name: Parse examples
id: test
Expand All @@ -63,3 +63,4 @@ jobs:
invalid-files: |
examples/framework/tests/Foundation/fixtures/bad-syntax-strategy.php
examples/WordPress/wp-includes/php-compat/readonly.php
examples/WordPress/wp-includes/class-wp-block-processor.php
3 changes: 2 additions & 1 deletion common/scanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ static bool scan(Scanner *scanner, TSLexer *lexer, const bool *valid_symbols) {
array_delete(&word);

lexer->mark_end(lexer);
array_delete(&array_pop(&scanner->heredocs).word);
Heredoc doc = array_pop(&scanner->heredocs);
array_delete(&doc.word);
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion php/src/parser.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

192 changes: 124 additions & 68 deletions php/src/tree_sitter/array.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion php_only/src/parser.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading