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

Tab Indents within Multiline String Literals #55

Open
kghenderson opened this issue Jul 7, 2022 · 1 comment
Open

Tab Indents within Multiline String Literals #55

kghenderson opened this issue Jul 7, 2022 · 1 comment

Comments

@kghenderson
Copy link

I completely understand that CUE follows Go and uses tabs for indentation.
My issue is that I have injected code blocks within multi-line string literals in cue where tabs are disallowed.
I tried adding my own 'code style' and 'line indent provider' to my custom nested language plugin, but IntelliJ seems to always be using the file type / parent language for this setting. Also tried EditorConfig with overrides on, but this didn't work either.

I'm thinking my only hack is to use a Hidden/Private Key in the user-visible cue file that then has tabs replaced in the Public key that gets exported, but it would be nice if we had an option to use separate indentation within strings.

@kghenderson
Copy link
Author

some additional documentation regarding the issue:
cue-lang/cue#1720
https://cuelang.slack.com/archives/CLT3ULF6C/p1652628916206979

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

1 participant