Skip to content

Recognize .resource files as Robot Framework file#2158

Merged
tancnle merged 1 commit intorouge-ruby:masterfrom
304:add-robot-framework-highlight-for-resource-extension
Aug 26, 2025
Merged

Recognize .resource files as Robot Framework file#2158
tancnle merged 1 commit intorouge-ruby:masterfrom
304:add-robot-framework-highlight-for-resource-extension

Conversation

@304
Copy link
Copy Markdown
Contributor

@304 304 commented Aug 26, 2025

Problem

RobotFramework supports .resource files, but they aren’t highlighted currently.

See documentation:
https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#resource-files

Solution

Extend the RobotFramework lexer to detect .resource files.

Before

Screenshot 2025-08-26 at 12 01 21

After

Screenshot 2025-08-26 at 11 50 36

**Problem**

RobotFramework supports `.resource` files, but they aren’t highlighted
currently.

See documentation:
https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#resource-files

**Solution**

Extend the RobotFramework lexer to detect `.resource` files.
@304
Copy link
Copy Markdown
Contributor Author

304 commented Aug 26, 2025

Hi @tancnle! 👋 Can you please review this change?

@tancnle tancnle added this pull request to the merge queue Aug 26, 2025
Merged via the queue into rouge-ruby:master with commit 87662dd Aug 26, 2025
10 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.

2 participants