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

Linting issue with stanza & searches #12

Closed
lmnogues opened this issue Feb 28, 2020 · 5 comments
Closed

Linting issue with stanza & searches #12

lmnogues opened this issue Feb 28, 2020 · 5 comments

Comments

@lmnogues
Copy link

The linter detect invalid key for stanza like savedsearches or macro when there is multi line searches included :
image

Invalid key in stanza [my_saved_searches] in savedsearches.conf, line 41: earliest= @mon \.

@JasonConger
Copy link
Collaborator

Adding a space at the beginning of the line for your additional lines should resolved this. For example:

[my_search]
search = index=main \
 earliest = @mon \
 latest = @d \

@lmnogues
Copy link
Author

yes but those are GUI edited file, I will not re-edit all my file for a faulty linter...

@JasonConger
Copy link
Collaborator

Fair enough. We'll get this addressed. Thanks for the use and feedback!

JasonConger added a commit that referenced this issue Apr 23, 2020
@JasonConger
Copy link
Collaborator

Version 0.2.3 addresses the multi-line issue.

@arcsector
Copy link

I think this should still be open - though this isn't throwing an error anymore, the syntax highlighting still identifies multi-line strings as multiple single-line strings, and doesn't respect the final backspace before the line terminator and newline.

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

3 participants