Skip to content

How to get the value of a multi-line string literal #1891

Answered by spoenemann
dgDSA asked this question in Q&A
Discussion options

You must be logged in to vote

This is done by the ValueConverter service: https://github.com/eclipse-langium/langium/blob/main/packages/langium/src/parser/value-converter.ts

You can customize that (override the default through dependency injection) to provide one that handles your multiline strings by trimming and unescaping.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by msujew
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants