This repository was archived by the owner on Apr 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ src/prettify.js: js-modules/*.js js-modules/*.pl
3737 || rm src/prettify.js
3838 @if [ -e $@ ]; then chmod -w $@ ; fi
3939
40- distrib : distrib.tstamp distrib/google-code- prettify-minimized .tgz \
41- distrib/google-code- prettify-minimized .tar.bz2
42- @wc -c distrib/google-code- prettify-minimized .{tar.bz2,tgz} \
40+ distrib : distrib.tstamp distrib/prettify-small .tgz \
41+ distrib/prettify-small .tar.bz2
42+ @wc -c distrib/prettify-small .{tar.bz2,tgz} \
4343 | grep -v total
4444
4545distrib.tstamp : src/* .js src/* .css
@@ -85,7 +85,7 @@ distrib.tstamp: src/*.js src/*.css
8585% .tar.bz2 : % .tar
8686 @bzip2 -9f $^
8787
88- distrib/google-code- prettify-minimized .tar : distrib.tstamp
88+ distrib/prettify-small .tar : distrib.tstamp
8989 @pushd distrib >& /dev/null; \
9090 tar cf ../$@ google-code-prettify; \
9191 popd >& /dev/null
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
289289 var inverse = charsetParts [ 0 ] === '^' ;
290290 for ( var i = inverse ? 1 : 0 , n = charsetParts . length ; i < n ; ++ i ) {
291291 var p = charsetParts [ i ] ;
292- if ( / \\ [ b d s w ] / i. test ( p ) ) {
292+ if ( / \\ [ b d s w ] / i. test ( p ) ) { // Don't muck with named groups.
293293 groups . push ( p ) ;
294294 } else {
295295 var start = decodeEscape ( p ) ;
@@ -302,6 +302,9 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
302302 }
303303 ranges . push ( [ start , end ] ) ;
304304 // If the range might intersect letters, then expand it.
305+ // This case handling is too simplistic.
306+ // It does not deal with non-latin case folding.
307+ // It works for latin source code identifiers though.
305308 if ( ! ( end < 65 || start > 122 ) ) {
306309 if ( ! ( end < 65 || start > 90 ) ) {
307310 ranges . push ( [ Math . max ( 65 , start ) | 32 , Math . min ( end , 90 ) | 32 ] ) ;
You can’t perform that action at this time.
0 commit comments