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

Syntax coloring #2

Open
schlaup opened this issue Apr 4, 2018 · 1 comment
Open

Syntax coloring #2

schlaup opened this issue Apr 4, 2018 · 1 comment
Labels

Comments

@schlaup
Copy link

schlaup commented Apr 4, 2018

I am testing the examples from the textX-languageserver repo with latest version of VSCode and your extension.

Everything is working except syntax / keyword coloring.

Is this not implemented yet?

Is there any documentation for the .txol and .txco files?

@danixeee
Copy link
Member

danixeee commented Apr 4, 2018

Syntax highlighting works only if you add a new language and its file for syntax coloring (syntax colorization is based on TextMate grammars and TextMate themes), so VS Code can recognize it and paint it (base on language extension).

Languages from the examples folder are not added to language section in our package.json and that's why syntax coloring is not working.
For e.g. , if you open workflow.wf file in VS Code, in bottom right corner you should see that VS Code recognizes it as a plaintext and do not know the coloring rules.

Main purpose of textx-ls extension is to generate and pack new extension from your DSL definition and other configurations (.txconfig, .txol, .txcl, etc.). You can read here how to generate specific extension.

.txol files are pretty simple. If you are familiar with textX, you can see the outline grammar here.

For_.txcl_, @starcev can help you. Meanwhile, here is the coloring grammar.

We will try to make the documentation as soon as possible. :)

@danixeee danixeee closed this as completed Apr 4, 2018
@danixeee danixeee reopened this Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants