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

Exclude comparison operators from modifier logic #6370

Merged
merged 3 commits into from
Apr 24, 2023

Conversation

kazcw
Copy link
Contributor

@kazcw kazcw commented Apr 20, 2023

Pull Request Description

Fix behavior of <= and >=: Add exceptions to the logic identifying modified-assignment operators, to exclude the inclusive-comparison operators and treat them as normal operators.

Important Notes

  • Modifier vs operator distinction has been moved from IDE to the lexer.
  • New CLI for debugging span trees; can be invoked like cargo run -p span-tree -- "a <"

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed, the GUI was tested when built using ./run ide build.

@kazcw kazcw linked an issue Apr 20, 2023 that may be closed by this pull request
2 tasks
@kazcw kazcw force-pushed the wip/kw/fix-comparison-operators branch from 4e94694 to 2c078df Compare April 20, 2023 15:56
@kazcw kazcw added the CI: No changelog needed Do not require a changelog entry for this PR. label Apr 20, 2023
@kazcw kazcw self-assigned this Apr 20, 2023
@kazcw kazcw marked this pull request as ready for review April 21, 2023 03:35
@kazcw
Copy link
Contributor Author

kazcw commented Apr 24, 2023

Skipping QA because: I know exactly what the scope of what could affect, and the lexer/parser code is heavily unit/integration-tested.

@kazcw kazcw merged commit d6828b5 into develop Apr 24, 2023
@kazcw kazcw deleted the wip/kw/fix-comparison-operators branch April 24, 2023 13:52
Procrat added a commit that referenced this pull request Apr 25, 2023
* develop:
  Turn null into UnexpectedExpression when Union type is incomplete (#6415)
  Ensure that IO.println does not fail if `to_text` returned a non-Text value. (#6223)
  Improve inlining of `<|` on (GraalVM EE) (#6384)
  Feat: update templates styles and feature (#6071)
  5127 Add Table.parse_to_columns to parse a single column to a set of columns. (#6383)
  URL handling (#6243)
  Exclude comparison operators from modifier logic (#6370)
  Better cleanup of project management test suite (#6392)
  Fix all eslint errors (#6267)
  Infer SQLite types locally (#6381)
  Vector Editor with List Editor and adding elements. (#6363)
  Add typechecks to Aggregate and Cross Tab (#6380)
  Forbid edits in read-only mode (#6342)
  Add Table.parse_text_to_table to convert Text to a Table. (#6294)
  Adding typechecks to Column Operations (#6298)
  Rollback cloud options groups (#6331)
  Project folder not renamed after project name change (#6369)
  Add `replace`, `trim` to Column. Better number parsing. (#6253)
  Read-only mode for controllers (#6259)
  Prevent default for all events, fixing multiple IDE bugs (#6364)
Akirathan pushed a commit that referenced this pull request Apr 26, 2023
* Exclude comparison operators from modifier logic

* CLI for SpanTree debug_print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some operators are not recognized as operators.
4 participants