Skip to content

Support jq multi-line comment escape#27

Open
A4-Tacks wants to merge 1 commit into
vito-c:masterfrom
A4-Tacks:multi-line-comment
Open

Support jq multi-line comment escape#27
A4-Tacks wants to merge 1 commit into
vito-c:masterfrom
A4-Tacks:multi-line-comment

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Sep 29, 2025

Copy link
Copy Markdown

See jq manual COMMENTS

Example

For example, the following code outputs [1,3,4,7]

[
  1,
  # foo \
  2,
  # bar \\
  3,
  4, # baz \\\
  5, \
  6,
  7
  # comment \
    comment \
    comment
]

See jq manual **COMMENTS**

Example
---
For example, the following code outputs `[1,3,4,7]`

    ```jq
    [
      1,
      # foo \
      2,
      # bar \\
      3,
      4, # baz \\\
      5, \
      6,
      7
      # comment \
        comment \
        comment
    ]
    ```
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.

1 participant