mirror of
https://github.com/ivuorinen/tree-sitter-shellspec.git
synced 2026-02-14 03:52:02 +00:00
refactor: enhance CI/CD workflows and apply CodeRabbit suggestions
- Convert GitHub Actions from local to inline actions for better maintainability - Add comprehensive caching for npm dependencies, tree-sitter CLI, and build artifacts - Fix checkout steps missing in test matrix jobs - Apply defensive programming in test coverage validation - Use local tree-sitter CLI via npx instead of global installation - Update tree-sitter-cli to v0.25.0 for compatibility with tree-sitter-bash - Add proper tree-sitter field to package.json with grammar metadata - Fix grammar precedence for Data blocks (#| lines now have higher precedence) - Standardize dates in memory files to September 12, 2025 - Enhance workflow robustness with dynamic workflow ID resolution - Improve test file pattern matching and error handling This commit addresses all CodeRabbit review suggestions and optimizes GitHub Actions workflows for better performance and reliability.
This commit is contained in:
@@ -124,9 +124,9 @@ module.exports = grammar(bashGrammar, {
|
||||
// ShellSpec Data blocks with advanced syntax support
|
||||
shellspec_data_block: ($) =>
|
||||
choice(
|
||||
// Block style with #| lines
|
||||
// Block style with #| lines - highest precedence to ensure #| lines are parsed correctly
|
||||
prec.right(
|
||||
4,
|
||||
5,
|
||||
seq(
|
||||
"Data",
|
||||
optional(seq(":", field("modifier", choice("raw", "expand")))),
|
||||
@@ -140,9 +140,9 @@ module.exports = grammar(bashGrammar, {
|
||||
"End",
|
||||
),
|
||||
),
|
||||
// Block style with regular statements - highest precedence to ensure End is captured
|
||||
// Block style with regular statements
|
||||
prec.right(
|
||||
5,
|
||||
4,
|
||||
seq(
|
||||
"Data",
|
||||
optional(seq(":", field("modifier", choice("raw", "expand")))),
|
||||
|
||||
Reference in New Issue
Block a user