projects
/
mdref
/
mdref
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
flush
[mdref/mdref]
/
index.js
diff --git
a/index.js
b/index.js
index f02ac5acaddadcfeec4ca96016ceef0c7b010483..45b5bb87f507905a029b95416381fcac4bc3f1fd 100644
(file)
--- a/
index.js
+++ b/
index.js
@@
-3,7
+3,11
@@
function log() {
}
function is_constant(s) {
}
function is_constant(s) {
- return s.length > 1 && s.toUpperCase(s) === s;
+ s = s.replace(/v\d+(_\d+)?$/, "");
+ if (s.length < 2) {
+ return false;
+ }
+ return s.toUpperCase(s) === s;
}
function is_variable(s) {
}
function is_variable(s) {
@@
-48,6
+52,7
@@
function type(s, nn) {
case "RecursiveArrayIterator":
case "SplObserver":
case "SplSubject":
case "RecursiveArrayIterator":
case "SplObserver":
case "SplSubject":
+ case "SplObjectStorage":
return "<code>";
// keywords
return "<code>";
// keywords
@@
-145,10
+150,10
@@
function walk(i, e) {
function blink(c) {
var $c = $(c);
function blink(c) {
var $c = $(c);
- $c.fadeOut("
slow
").queue(function(next) {
+ $c.fadeOut("
fast
").queue(function(next) {
this.style.color = "red";
next();
this.style.color = "red";
next();
- }).fadeIn("fast").fadeOut("
fast
").queue(function(next) {
+ }).fadeIn("fast").fadeOut("
slow
").queue(function(next) {
this.style.color = "";
next();
}).fadeIn("slow");
this.style.color = "";
next();
}).fadeIn("slow");