Skip to content

Commit

Permalink
Fixed a bug where "x = x / 10 / (foo);" would match the regular expre…
Browse files Browse the repository at this point in the history
…ssion pattern.
  • Loading branch information
ioquatix committed Dec 6, 2011
1 parent a3c9fcc commit 63056da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/jquery.syntax.core.js
Expand Up @@ -254,7 +254,7 @@ Syntax.lib.cStyleComment = {pattern: /\/\*[\s\S]*?\*\//gm, klass: 'comment', all
Syntax.lib.cppStyleComment = {pattern: /\/\/.*$/gm, klass: 'comment', allow: ['href']};
Syntax.lib.perlStyleComment = {pattern: /#.*$/gm, klass: 'comment', allow: ['href']};

Syntax.lib.perlStyleRegularExpression = {pattern: /\B\/([^\/]|\\\/)*?\/[a-z]*(?=\s*($|[^\w\s'"]))/gm, klass: 'constant', incremental: true};
Syntax.lib.perlStyleRegularExpression = {pattern: /\B\/([^\/]|\\\/)*?\/[a-z]*(?=\s*($|[^\w\s'"\(]))/gm, klass: 'constant', incremental: true};

Syntax.lib.cStyleFunction = {pattern: /([a-z_][a-z0-9_]*)\s*\(/gi, matches: Syntax.extractMatches({klass: 'function'})};
Syntax.lib.camelCaseType = {pattern: /\b_*[A-Z][\w]*\b/g, klass: 'type'};
Expand Down

0 comments on commit 63056da

Please sign in to comment.