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 rework #1562

Merged
merged 22 commits into from
Mar 30, 2022
Merged

Indentation rework #1562

merged 22 commits into from
Mar 30, 2022

Commits on Jan 23, 2022

  1. WIP: Rework indentation system

    Triton171 committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    76378a1 View commit details
    Browse the repository at this point in the history
  2. Add ComplexNode for context-aware indentation (including a proof of c…

    …oncept for assignment statements in rust)
    Triton171 committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    3e39f7a View commit details
    Browse the repository at this point in the history
  3. Add switch statements to Go indents.toml (fixes the second half of is…

    …sue helix-editor#1523)
    
    Remove commented-out code
    Triton171 committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    c417b9e View commit details
    Browse the repository at this point in the history
  4. Migrate all existing indentation queries.

    Add more options to ComplexNode and use them to improve C/C++ indentation.
    Triton171 committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    eac73eb View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Add comments & replace Option<Vec<_>> with Vec<_>

    Triton171 committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    d4c4533 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2022

  1. Configuration menu
    Copy the full SHA
    3f91662 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2022

  1. Improve code style in indent.rs

    Triton171 committed Jan 30, 2022
    Configuration menu
    Copy the full SHA
    7666318 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2022

  1. Use tree-sitter queries for indentation instead of TOML config.

    Migrate existing indent queries.
    Triton171 committed Feb 12, 2022
    Configuration menu
    Copy the full SHA
    5a8517b View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2022

  1. Add documentation for the new indent queries.

    Change xtask docgen to look for indents.scm instead of indents.toml
    Triton171 committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    c6f6a2d View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2022

  1. Improve code style in indent.rs.

    Fix an issue with the rust indent query.
    Triton171 committed Feb 15, 2022
    Configuration menu
    Copy the full SHA
    5d8e1d8 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2022

  1. Move indentation test sources to separate files.

    Add `#not-kind-eq?`, `#same-line?` and `#not-same-line` custom predicates.
    Improve the rust and c indent queries.
    Triton171 committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    3c066b5 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into indentation-rework

    Triton171 committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    5100bfe View commit details
    Browse the repository at this point in the history
  3. Fix indent test.

    Improve rust indent queries.
    Triton171 committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    7c64788 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2022

  1. Move indentation tests to integration test folder.

    Triton171 committed Feb 25, 2022
    Configuration menu
    Copy the full SHA
    09d7d5d View commit details
    Browse the repository at this point in the history
  2. Improve code style in indent.rs.

    Reuse tree-sitter cursors for indentation queries.
    Triton171 committed Feb 25, 2022
    Configuration menu
    Copy the full SHA
    9740d41 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' into indentation-rework

    Triton171 committed Feb 25, 2022
    Configuration menu
    Copy the full SHA
    91d0a75 View commit details
    Browse the repository at this point in the history
  4. Migrate HCL indent query

    Triton171 committed Feb 25, 2022
    Configuration menu
    Copy the full SHA
    923ee07 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2022

  1. Merge branch 'master' into indentation-rework

    Triton171 committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    d5f4368 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1504393 View commit details
    Browse the repository at this point in the history
  3. Update indent query file name for --health command.

    Triton171 committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    6321937 View commit details
    Browse the repository at this point in the history
  4. Fix single-space formatting in indent queries.

    Triton171 committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    ae35bc4 View commit details
    Browse the repository at this point in the history
  5. Add explanation for unwrapping.

    Triton171 committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    3055f63 View commit details
    Browse the repository at this point in the history