Skip to content

Use consistent variable discovery and escaping rules - #101

Merged
Gubarz merged 2 commits into
cheatmd-dev:mainfrom
echo8134:fix/variable-recognition
Nov 25, 2026
Merged

Gubarz merged 2 commits into
cheatmd-dev:mainfrom
echo8134:fix/variable-recognition

Conversation

@echo8134

Copy link
Copy Markdown
Contributor

Summary

Compose extraction and execution dependency discovery disagreed about escaped references, even backslashes and default syntax. Share one scanner that reports complete references in source order and recognizes dollar escaping.

Related issues

No linked issue.

Verification

Parser/executor discovery tests and actual compose output verify escaped literals do not create variable declarations.

Local checks passed on Go 1.27.1. The CI workflow uses Go 1.26.3.

Checklist

  • go build ./... and go test ./... pass
  • gofmt -l . and go vet ./... are clean
  • Added regression tests for the changed behavior
  • cheatmd --lint examples/ passes
  • Docs/wiki changes are not needed for this fix

@Gubarz
Gubarz force-pushed the fix/variable-recognition branch from f18dd36 to 4e6f59b Compare November 25, 2026 06:50
@Gubarz
Gubarz marked this pull request as ready for review November 25, 2026 06:53
@Gubarz
Gubarz merged commit 49289ea into cheatmd-dev:main Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants