Skip to content

Commit

Permalink
Fix '#' as a regex delimiter
Browse files Browse the repository at this point in the history
Allows:

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

Discussed in atom/language-perl/pull/78
  • Loading branch information
Fank authored and infininight committed Jan 16, 2017
1 parent d9841a0 commit 1c8ade4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Syntaxes/Perl.plist
Original file line number Diff line number Diff line change
Expand Up @@ -618,11 +618,11 @@
<key>applyEndPatternLast</key>
<integer>1</integer>
<key>begin</key>
<string>\b(?=(?&lt;!\&amp;)(s)(\s+\S|\s*[;\,\#\{\}\(\)\[&lt;]|$))</string>
<string>\b(?=(?&lt;!\&amp;)(s)(\s+\S|\s*[;\,\{\}\(\)\[&lt;]|$))</string>
<key>comment</key>
<string>string.regexp.replace.perl</string>
<key>end</key>
<string>((([egimosxradlupcn]*)))(?=(\s+\S|\s*[;\,\#\{\}\)\]&gt;]|\s*$))</string>
<string>((([egimosxradlupcn]*)))(?=(\s+\S|\s*[;\,\{\}\)\]&gt;]|\s*$))</string>
<key>endCaptures</key>
<dict>
<key>1</key>
Expand Down

0 comments on commit 1c8ade4

Please sign in to comment.