Skip to content

Add operators 'has' & 'has-not', and shorten operators-word regex #201

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

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

LemmusLemmus
Copy link
Contributor

Aside from adding the two missing operators, I think the regex looks slightly better now by using extra groups to avoid repeating e.g. not-?

Sidnote

  • It might be better to automatically generate the list of binary operators, using the output of help operators | select operator, but meh.
  • Another currently not highlighted operator is the (unary) optional operator that can only be used on cell-paths. I might see if I can add it, but that will probably require improved syntax highlighting of various valid cell-paths.

@fdncred fdncred merged commit cabc695 into nushell:main Mar 26, 2025
1 check passed
@fdncred
Copy link
Contributor

fdncred commented Mar 26, 2025

Thanks

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.

2 participants