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

Fix '#' as a regex delimiter #78

Merged
merged 1 commit into from
Sep 20, 2016
Merged

Fix '#' as a regex delimiter #78

merged 1 commit into from
Sep 20, 2016

Conversation

Fank
Copy link
Contributor

@Fank Fank commented Sep 20, 2016

Before:
image

Now:
image

/cc @atom/feedback

@@ -350,9 +350,9 @@
}
{
'applyEndPatternLast': 1
'begin': '\\b(?=(?<!\\&)(s)(\\s+\\S|\\s*[;\\,\\#\\{\\}\\(\\)\\[<]|$))'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The # can still be included in the begin match right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, this part here is for regex matches with "start" and "end" tags like:

s<asd><def>
s(ddd)(sss)

but "#" is not a "tag" so its just

s#asd#def#

@winstliu winstliu merged commit 68227ae into master Sep 20, 2016
@winstliu winstliu deleted the fk_hashinregex branch September 20, 2016 15:38
infininight pushed a commit to textmate/perl.tmbundle that referenced this pull request Jan 16, 2017
Allows:

```perl
$asd =~ s#asd#foo#;
```

Discussed in atom/language-perl/pull/78
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants