I've been working on a small robot framework language syntax highlighting. Some things are a bit off still, I can't get strings to work. I recommend checking the general idea for the syntax from here: https://github.com/robocorp/robotframework-lsp/tree/master/robocorp-code I couldn't find any better source for it.
If you have any ideas how to improve this, please share!
Here's the above example for copy-paste testing. The syntax highlighting by gitlab is pretty spot on, so we could try to mimick them.
*** Settings ***
Documentation Example of calling a Libarary file, Note the reason why LSP does not complain is because
... "robot.libraries.libdoc.needsArgs" Documentation has an entry of "../libs/Example.py"
Library ${ROOT}/libs/Example.py ${EXAMPLE}
*** Test Cases ***
Use Lib Function
[Tags] Asd
[Documentation] Call Libarary file
Example.Print Args
*** Settings ***
Documentation A test suite with a single test for valid login.
...
... This test has a workflow that is created using keywords in
... the imported resource file.
Resource login.resource
*** Test Cases ***
Valid Login
Open Browser To Login Page
Input Username demo
Input Password mode
Submit Credentials
Welcome Page Should Be Open
[Teardown] Close Browser
${EXAMPLE} = ebin
#Comment
# Commentgfdgfg
# comment
#comment 3asdasf dfsfsd
Testi cool
[Tags] joo
sdkljflsdkfjs
IF $var_in_py_expr1 == $var_in_py_expr2
Call Keyword
ELSE
END
