mirror of
https://github.com/ivuorinen/tree-sitter-shellspec.git
synced 2026-02-15 04:52:22 +00:00
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:
@@ -7072,6 +7072,14 @@
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "xContext"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "fExampleGroup"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "xExampleGroup"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -7923,4 +7931,4 @@
|
||||
"_primary_expression"
|
||||
],
|
||||
"reserved": {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3143,6 +3143,10 @@
|
||||
"type": "fExample",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "fExampleGroup",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "fIt",
|
||||
"named": false
|
||||
@@ -3271,6 +3275,10 @@
|
||||
"type": "xExample",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "xExampleGroup",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "xIt",
|
||||
"named": false
|
||||
@@ -3307,4 +3315,4 @@
|
||||
"type": "~",
|
||||
"named": false
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
1690
src/parser.c
1690
src/parser.c
File diff suppressed because it is too large
Load Diff
@@ -152,6 +152,7 @@ struct TSLanguage {
|
||||
};
|
||||
|
||||
static inline bool set_contains(const TSCharacterRange *ranges, uint32_t len, int32_t lookahead) {
|
||||
if (len == 0) return false;
|
||||
uint32_t index = 0;
|
||||
uint32_t size = len - index;
|
||||
while (size > 1) {
|
||||
|
||||
Reference in New Issue
Block a user