Skip to content

docs(tmlanguage-generator): Add JSDoc for grammar generation APIs [skip chg] - #12254

Merged
Timothee Guerin (timotheeguerin) merged 1 commit into
microsoft:mainfrom
timotheeguerin:docs/jsdoc-tmlanguage
Oct 16, 2026
Merged

Timothee Guerin (timotheeguerin) merged 1 commit into
microsoft:mainfrom
timotheeguerin:docs/jsdoc-tmlanguage

Conversation

@timotheeguerin

Copy link
Copy Markdown
Member

Grammar authors need to know how rule objects become repository references, which regular-expression syntax is accepted, and what the emitters return. Document the exposed grammar types and their members, including shared/cyclic rules, capture mappings, meta scopes, and validation diagnostics.

Clarifies JSON/PList output ordering and input ownership without changing API signatures or behavior.

Tracked in #12228.

@pkg-pr-new

pkg-pr-new Bot commented Oct 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/tmlanguage-generator@12254

commit: c4e9c44

@azure-sdk-automation

azure-sdk-automation Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The documentation-only changes match the implementation, with no unresolved findings.

0 open findings

What changed in this PR

Adds public API JSDoc to the TextMate grammar generator as part of #12228, without changing signatures or runtime behavior.

Changes:

  • Documents rule identity, shared/cyclic references, captures, scopes, and regex syntax.
  • Clarifies emitter output, ordering, input ownership, and validation diagnostics.
File Description
packages/​tmlanguage-generator/​src/​tmlanguage-generator.ts Adds JSDoc for grammar types, members, and emitters.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@timotheeguerin
Timothee Guerin (timotheeguerin) merged commit 3719818 into microsoft:main Oct 16, 2026
34 checks passed
@timotheeguerin
Timothee Guerin (timotheeguerin) deleted the docs/jsdoc-tmlanguage branch October 16, 2026 16:20
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