Skip to content

highlight CODEOWNERS the way GitHub reads it - #39

Merged
chdsbd merged 7 commits into
masterfrom
cdignam/grammar-spec
Nov 4, 2026
Merged

chdsbd merged 7 commits into
masterfrom
cdignam/grammar-spec

Conversation

@chdsbd

@chdsbd chdsbd commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

🤖 The grammar now follows the matching rules in gh-codeowners' SPECIFICATION.md, and examples/CODEOWNERS has a rule for each of them. The pattern and owner scope names are unchanged so themes keep their colors. Lines GitHub accepts but never matches, like unbalanced \[ and \] or a ./ segment, aren't marked invalid since GitHub doesn't reject them.

Before and after, with the Dark+ theme:

Before and after highlighting of CODEOWNERS rules

@chdsbd

chdsbd commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner Author

🤖 The macOS test job was failing on master too: VS Code 1.110 renamed its macOS executable, which @vscode/test-electron only finds from 3.x. 3.x needs Node 22 or later, so this moves volta's Node to 24.22.1, the version VS Code 1.144 runs, along with @types/node. skipLibCheck is on because TypeScript 4.9 can't read the newer @types/node declarations. The tests also use a temporary user data directory, because the default inside the checkout makes VS Code's IPC socket path too long on macOS runners.

@chdsbd
chdsbd marked this pull request as ready for review November 4, 2026 14:14
@chdsbd
chdsbd merged commit 7561790 into master Nov 4, 2026
8 checks passed
@chdsbd
chdsbd deleted the cdignam/grammar-spec branch November 4, 2026 23:16
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.

1 participant