Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

winstliu
Copy link
Contributor

@winstliu winstliu commented Jan 9, 2017

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

This is a continuation of #35, with a fixed spec.

Alternate Designs

N/A

Benefits

See #35.

Possible Drawbacks

N/A

Applicable Issues

Fixes #52
Supersedes and closes #35

Thanks to @mkhl for the initial PR.

mkhl and others added 3 commits March 8, 2016 22:53
The regexp engine and the shell grammar don't agree on what comprises
a “word boundary”. This leads to problems where a command or path
ending in a shell keyword would be interpreted as that keyword.

This change replaces `\b` word boundary matchers with lookahead/-behind
matchers on whitespace, line breaks, and command separators (";" and "&").

It also eliminates ad-hoc custom word boundaries, where subsets of [-=/]
were pre- or appended to some word boundaries,
which fixed some similar problems.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

markdown miss-hightlight "bash" when there's the word "until"
2 participants