Associate file extension ".resource" with RobotFramework language

Summary

Robot Framework files with extension .resource(link) is not currently associated with the language Robot Framework, so syntax highlighting when you view the file within a repository is just plain text.

Steps to reproduce

Open a file with extension ".resource" in any GitLab repository and observe that there is no syntax highlighting.

What is the current bug behavior?

No syntax highlighting

What is the expected correct behavior?

Should be syntax highlighted the same way as ".robot" files.

Possible fixes

Modify the RobotFramework field in vendor/languages.yml to associate ".resource" files with this language (in addition to ".robot").

https://gitlab.com/gitlab-org/gitlab/-/blob/master/vendor/languages.yml#L4716

RobotFramework:
  type: programming
  extensions:
  - ".robot"
+  - ".resource"
  tm_scope: text.robot
  ace_mode: text
  language_id: 324
Edited Oct 03, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading