Skip to content

Add syntax highlighting for module configuration paths in .dmd files#210

Merged
JohnAmadis merged 2 commits intodevelopfrom
copilot/fix-vscode-extension-syntax
Feb 12, 2026
Merged

Add syntax highlighting for module configuration paths in .dmd files#210
JohnAmadis merged 2 commits intodevelopfrom
copilot/fix-vscode-extension-syntax

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

The VS Code extension was not highlighting configuration file paths in module entries like dmclk board/stm32f746g-disco.ini.

Changes

  • Grammar: Extended module-entry pattern to capture two additional optional groups: configuration paths and custom destination names
  • Scope names: Added string.unquoted.path.config.dmd and string.unquoted.path.custom-name.dmd for theme colorization
  • Documentation: Updated README with configuration path examples and bumped version to 1.2.0

Syntax now supported

# Module with configuration path
dmclk board/stm32f746g-disco.ini

# With version
uart@1.2.3 configs/uart_115200.ini

# With custom destination name
gpio configs/default.cfg my_gpio.cfg

The regex pattern maintains backward compatibility with existing module-only and module@version entries.

Original prompt

This section details on the original issue you should resolve

<issue_title>VS Code extension nie wspiera konfiguracji dla modułów</issue_title>
<issue_description>Nie koloruje takiej składni jak na rysunku:

Image

czyli:

# 
# File with list of modules to load
#
dmell
dmffs
dmramfs
dmdevfs@0.2
ls 
mkdir
dmclk board/stm32f746g-disco.ini
```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…Code extension

Co-authored-by: JohnAmadis <17320783+JohnAmadis@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix VS Code extension syntax highlighting for modules Add syntax highlighting for module configuration paths in .dmd files Feb 12, 2026
Copilot AI requested a review from JohnAmadis February 12, 2026 09:26
@JohnAmadis JohnAmadis marked this pull request as ready for review February 12, 2026 12:27
@JohnAmadis JohnAmadis merged commit c9c9e3c into develop Feb 12, 2026
4 checks 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.

VS Code extension nie wspiera konfiguracji dla modułów

2 participants

Comments