1. Georg Brandl
  2. pygments-main
Issue #258 resolved

[perl syntax highlighting] non-standard regex patterns not recognized

Anonymous created an issue

=== sample code === http://pygments.org/demo/362/ === bugs === only the first test case '''(a)''' is correctly recognized as a substitution.

executing the test script emits {{{ % ./pygments_test.pl a: foo - bar b: foo - bar c: foo - bar d: foo - bar

e: foo - bar f: foo - bar g: foo - bar h: foo - bar

i: foo - bar j: foo - bar k: foo - bar

l: foo - bar m: foo - bar n: foo - bar

o: foo - bar p: foo - bar }}}

Reported by guest

Comments (15)

  1. Anonymous

    I know this is an old bug, but the problem I'm having really is the same bug.

    This bug appears to have fixed stuff like s!!! (replacement), but stuff like m!! (matching) still doesn't work. Any character you can use for substitution can also be used for matching.

    Example: http://pygments.org/demo/2873/

  2. Anonymous

    Replying to [comment:5 tianon]:

    I know this is an old bug, but the problem I'm having really is the same bug.

    This bug appears to have fixed stuff like s!!! (replacement), but stuff like m!! (matching) still doesn't work. Any character you can use for substitution can also be used for matching.

    Example: http://pygments.org/demo/2873/

    Sorry, I guess I should clarify that a little. If you use the 'm' in front, that's true. Only can be used to directly specify a match without an explicit m.

    More information: http://perldoc.perl.org/perlreref.html#OPERATORS

  3. Anonymous

    Can we get some kind of status on adding the same changes for m!! as were added for s!!! ?

  4. Log in to comment