Created
January 15, 2009 19:51
-
-
Save mojombo/47566 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Expr = Sizzle.selectors = { | |
order: [ "ID", "NAME", "TAG" ], | |
match: { | |
ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, | |
CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, | |
NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/, | |
ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/, | |
TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/, | |
CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, | |
POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/, | |
PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/ | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/pygments/lexers/web.py Sun Jan 04 22:41:03 2009 +0100 | |
+++ b/pygments/lexers/web.py Thu Jan 15 11:52:01 2009 -0800 | |
@@ -44,7 +44,7 @@ | |
(r'//.*?\n', Comment), | |
(r'/\*.*?\*/', Comment), | |
(r'/(\\\\|\\/|[^/\n])*/[gim]+\b', String.Regex), | |
- (r'/(\\\\|\\/|[^/\n])*/(?=\s*[,);])', String.Regex), | |
+ (r'/(\\\\|\\/|[^/\n])*/(?=\s*[,);\n])', String.Regex), | |
(r'/(\\\\|\\/|[^/\n])*/(?=\s*\.[a-z])', String.Regex), | |
(r'[~\^\*!%&<>\|+=:;,/?\\-]+', Operator), | |
(r'[{}\[\]();.]+', Punctuation), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment