Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language addition: .resource files for Robot Framework #533

Closed
HiskiRobo opened this issue Jun 3, 2020 · 2 comments
Closed

Language addition: .resource files for Robot Framework #533

HiskiRobo opened this issue Jun 3, 2020 · 2 comments

Comments

@HiskiRobo
Copy link
Contributor

HiskiRobo commented Jun 3, 2020

Would it be possible to add .resource file support for Robot Framework.

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

Basically .resource files are stripped .robot files, containing only keywords.

Did not do a pull request for this directly, since this is not a new language addition, and was unsure on how to create it (was not able to create working tests by using the .robot file as a basis, and changing file extension. got a test error:

E       AssertionError: assert '.robot' == '.resource'
E         - .robot
E         + .resource
@mwouts
Copy link
Owner

mwouts commented Jun 3, 2020

Hi @HiskiRobo , if that can help there are a few languages (scheme and fsharp for instance) with multiple associated extensions, cf.

".ss": {"language": "scheme", "comment": ";;"},
".clj": {"language": "clojure", "comment": ";;"},
".scm": {"language": "scheme", "comment": ";;"},

With just an additional line in that dictionnary, you should be able to convert Robot notebooks to .resource files, and vice versa (and open these files in Jupyter). Would you like to give it a try? (If that works, feel free to submit the corresponding change, no need to add more tests for this 😃 )

@HiskiRobo
Copy link
Contributor Author

created mini-PR here, closing this issue.

#535

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

No branches or pull requests

2 participants