Skip to content

Conversation

@glcraft
Copy link
Contributor

@glcraft glcraft commented Jun 20, 2023

From hustcer/nu-grammar#1

Remove non-fixed text width in lookbehind and negative lookahead regex.

Note: about "command" rule regex, i didn't remember why I wrote |(?<=\\)|\\}|\\]|\\$\\w+)\\. in "command" rule. I think it was useful in early stage of making this file.
Anyway, I didn't see any case where it is useful now. I tried different files to see if it causes any issue if I remove it, but I didn't see any.
So if someone see something wrong in the future, let me now 👍

@fdncred
Copy link
Contributor

fdncred commented Jun 20, 2023

I'm not sure this is working right. Here is variables
image

I'm struggling to find something that will test the other changes.

@glcraft
Copy link
Contributor Author

glcraft commented Jun 20, 2023

Argh yeah, that was the issue I was trying to avoid in command... I have to do something so

glcraft added 3 commits June 21, 2023 19:24
It surely has been useful in early stage of the syntax
but it's seems to have no impact now
get rid of non-fixed text width lookbehind, incompatible with PCRE regex
variable can have 0 or more fields
@glcraft
Copy link
Contributor Author

glcraft commented Jun 21, 2023

okay, i just fix the issue
I forgot to transform a "one or more" variable fields repetition to "zero of more" in variables rule.

Tell me if you find something wrong 👍

@fdncred
Copy link
Contributor

fdncred commented Jun 21, 2023

I looked it over and tested it out. Nothing else seems to jump out. I did find a new issue though unrelated to this PR. #139

@fdncred fdncred merged commit 18c5541 into nushell:main Jun 21, 2023
@fdncred
Copy link
Contributor

fdncred commented Jun 21, 2023

Thanks for all your help!

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