#474 '#' in regex breaks subroutine folding

v0.6.x
closed-wont-fix
nobody
Editor (234)
5
2016-05-15
2008-02-12
Noworldsman
No

on EPIC 0.6.20, a line containing a '#' in a regexp like the following:

next if (/^\s*$/ or /^\s*#/); # skip comments

breaks subroutine folding and syntax highlighting, i.e. parts of the following subroutine are hidden as well when clicking on the "fold subroutine" button.
Obviously, this also breaks the subroutine listing in outline.

Discussion

  • Jan Ploski

    Jan Ploski - 2008-02-27

    Logged In: YES
    user_id=86907
    Originator: NO

    Making sense of whether / is a slash or a division operator is tricky in general. As an easy workaround, you can use m/ instead of just / to indicate regex matching.

     
  • Oliver Trosien

    Oliver Trosien - 2016-05-15
    • status: open --> closed-wont-fix
     
  • Oliver Trosien

    Oliver Trosien - 2016-05-15

    work-around is good enough. use m//.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks