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

Add JQ syntax highlighting #2072

Merged
merged 1 commit into from Feb 14, 2022
Merged

Add JQ syntax highlighting #2072

merged 1 commit into from Feb 14, 2022

Conversation

clarfonthey
Copy link
Contributor

@clarfonthey clarfonthey commented Feb 12, 2022

This has 13k downloads on package control: https://packagecontrol.io/packages/JQ%20Syntax

JQ is a pretty well-known tool, so, hopefully this isn't too controversial to add. A lot of people don't know that JQ can load scripts directly from files, however, and may not end up actually using the syntax highlighting. The syntax here doesn't self-embed in shell scripts that call the jq command, but if that were a thing to implement, it would probably be more commonly used.

Copy link
Collaborator

@keith-hall keith-hall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

The syntax here doesn't self-embed in shell scripts that call the jq command, but if that were a thing to implement, it would probably be more commonly used.

To me, that sounds like a great idea! Maybe we can add it as a patch.

Please could you add a CHANGELOG.md entry for this change as per https://github.com/sharkdp/bat/blob/master/CONTRIBUTING.md.

Also, note that you don't need to include the syntaxes.bin file in the PR. :) this is mentioned at step 7 in https://github.com/sharkdp/bat/blob/master/doc/assets.md

@clarfonthey
Copy link
Contributor Author

Whoops, sorry for only skimming the directions. 😳

Removed the syntaxes.bin file and added a changelog entry.

CHANGELOG.md Outdated Show resolved Hide resolved
@Enselic Enselic merged commit e4f6fb2 into sharkdp:master Feb 14, 2022
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

Successfully merging this pull request may close these issues.

None yet

4 participants