Issue #258 resolved

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

Anonymous avatarAnonymous 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.