Skip to content

feat(syntax): improve metadata header highlighting#3

Merged
MayerTim merged 1 commit into
mainfrom
feat/improve-metadata-header-highlighting
Jun 9, 2026
Merged

feat(syntax): improve metadata header highlighting#3
MayerTim merged 1 commit into
mainfrom
feat/improve-metadata-header-highlighting

Conversation

@MayerTim

@MayerTim MayerTim commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

Improves syntax highlighting for the generated metadata comment block in Watcom SQL files.

The metadata header now uses dedicated TextMate scopes for the metadata section markers, field names, separators, values, dates, authors, TODO placeholders, version values, and history entries. This makes the generated procedure metadata easier to read and visually separates it from regular comments.

Changes

  • Added dedicated highlighting scopes for -- METADATA / -- METADATA END blocks
  • Improved highlighting for metadata fields such as Description, Version, Author, Created, and Updated
  • Added highlighting support for history entries
  • Preserved compatibility with existing SQLovely-Metadata-Start / SQLovely-Metadata-Start marker behavior
  • Added regression coverage for metadata scope matching

Testing

  • Ran the extension test suite successfully
  • Verified that the generated metadata block receives the expected syntax scopes

@MayerTim MayerTim merged commit 5214168 into main Jun 9, 2026
1 check passed
@MayerTim MayerTim deleted the feat/improve-metadata-header-highlighting branch June 9, 2026 21:02
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