fix: resolve documentation inconsistencies and add ExampleGroup variants

Documentation Fixes:
- README.md: Update test count from 59 to 63 (badge, features, test command)
- README.md: Fix lint script references to actual npm scripts
- CONTRIBUTING.md: Correct format script reference to npm run format:check
- package.json: Remove non-existent yamllint script, split lint:markdown into check/fix variants

Grammar Enhancements:
- Add fExampleGroup and xExampleGroup to Context block variants
- Regenerate parser with new grammar (63/63 tests passing, 100% success rate)

Syntax Highlighting:
- Add fExampleGroup and xExampleGroup to focused/skipped block highlights
- Remove non-matching Data modifier tokens (:raw, :expand, #|)
- Add "End" keyword as block terminator

Memory File Corrections:
- Remove incorrect merge_group trigger references
- Remove pr-lint.yml workflow references (deleted in previous optimization)
- Update test counts with timestamps (59→63, added 2025-12-11)
- Update conflict count (13→5, optimized)

Code Style:
- Auto-format renovate.json and tree-sitter.json with prettier
This commit is contained in:
2025-12-11 18:23:18 +02:00
parent c24ae6b1f8
commit ccb9121b89
14 changed files with 1579 additions and 223 deletions

View File

@@ -1,6 +1,6 @@
# tree-sitter-shellspec
[![Test Status](https://img.shields.io/badge/tests-61%2F61%20passing-brightgreen)](https://github.com/ivuorinen/tree-sitter-shellspec)
[![Test Status](https://img.shields.io/badge/tests-63%2F63%20passing-brightgreen)](https://github.com/ivuorinen/tree-sitter-shellspec)
[![Grammar Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)](https://github.com/ivuorinen/tree-sitter-shellspec)
[![Tree-sitter](https://img.shields.io/badge/tree--sitter-grammar-blue)](https://tree-sitter.github.io/)
@@ -19,7 +19,7 @@ It enables syntax highlighting, code navigation, and tooling integration for She
- **Complete ShellSpec syntax support** - All block types, hooks, and utility constructs
- **Real-world compatibility** - Tested against official ShellSpec examples
- **Bash integration** - Seamlessly handles mixed ShellSpec/bash code
- **Production ready** - 100% test coverage with 59 comprehensive test cases
- **Production ready** - 100% test coverage with 63 comprehensive test cases
- **Editor support** - Works with any Tree-sitter compatible editor
## Installation
@@ -241,7 +241,7 @@ npm install
# Generate parser from grammar
npm run generate
# Run test suite (59 comprehensive tests)
# Run test suite (63 comprehensive tests)
npm test
# Build the parser
@@ -252,9 +252,10 @@ npm run dev # Generate + test
npm run dev:watch # Watch mode for development
# Linting and formatting
npm run lint # Check code style
npm run lint:fix # Auto-fix style issues
npm run format # Format code
npm run lint # Check code style
npm run lint:editorconfig:fix # Auto-fix EditorConfig issues
npm run lint:markdown # Auto-fix markdown issues (includes --fix)
npm run format # Format code with prettier
# Utilities
npm run clean # Clean generated files