Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree-sitter-xpath: initial XPath grammar/parser #2

Merged
merged 7 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions .changeset/silver-lemons-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tree-sitter-xpath': patch
---

Initial implementation of XPath grammar for tree-sitter
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@ packages/tree-sitter-xpath/grammar.js
packages/tree-sitter-xpath/grammar.js.map
packages/tree-sitter-xpath/tree-sitter-xpath.wasm

# Test artifcats
## Playwright, apparently
packages/*/test-results

# Generated fixtures/etc
packages/**/test/**/fixtures/generated/**
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ const configs = [
'eslint.config.js',
'scripts/**/*.js',
'packages/*/playwright.config.ts',
// TODO: in theory, all e2e tests (if they continue to be run with
// Playwright) are technically run in a "Node" environment, although
// they will likely exercise non-Node code when calling into the
// Playwright-managed browser process. I'm adding this special case
// mainly to make note of this because it's unclear what the best
// solution will be for mixed Node-/browser-API code in terms of type
// safety and linting.
'packages/tree-sitter-xpath/e2e/sub-expression-queries.test.ts',
],
env: {
node: true,
Expand Down
Loading