Permalink
Browse files

Highlight fully qualified package names

  • Loading branch information...
1 parent de04d09 commit 84a9565dd09938caaa3611089ca8ef8b675210a9 @rwstauner rwstauner committed Oct 28, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 root/static/js/shBrushPerl.js
@@ -58,7 +58,8 @@
{ regex: /^#!.*\n/g, css: 'preprocessor' }, // shebang
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
- { regex: /(?:[$@%*]|\$#)\w+/g, css: 'variable' },
+ // currently ignoring single quote package separator and utf8 names
+ { regex: /(?:[$@%*]|\$#)[a-zA-Z_](\w+|::)*/g, css: 'variable' },
{ regex: /\b__(?:END|DATA)__\b[\s\S]*$/g, css: 'comments' },
{ regex: /^=\w[\s\S]*?\n=cut\s*$/gm, css: 'comments' },
{ regex: new RegExp(this.getKeywords(funcs), 'gm'), css: 'functions' },

0 comments on commit 84a9565

Please sign in to comment.