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

Indentation error? #2

Open
pengyu opened this issue Mar 22, 2020 · 1 comment
Open

Indentation error? #2

pengyu opened this issue Mar 22, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@pengyu
Copy link

pengyu commented Mar 22, 2020

The following code is indented like this. I think the first line should not be indented. Is it a bug? Thanks

	. as $all
| (.molecules | .[] | [.molecule_structures.standard_inchi_key, .molecule_chembl_id])
	, ($all | .not_found? | .[]? | [., ""])
	| @tsv
@bfrg
Copy link
Owner

bfrg commented Mar 22, 2020

Currently this plugin doesn't provide any indendexpr for jq files. What you're observing is Vim's builtin indentation.

I am open to adding an indentexpr but this should probably be discussed first since I'm not 100% sure about the best method. I just haven't seen many jq scripts so far.

@bfrg bfrg added enhancement New feature or request help wanted Extra attention is needed labels Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants