projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/Scope.js
[gnome.introspection-doc-generator]
/
JSDOC
/
TokenReader.js
diff --git
a/JSDOC/TokenReader.js
b/JSDOC/TokenReader.js
index
63cb7f2
..
9fe4fe7
100644
(file)
--- a/
JSDOC/TokenReader.js
+++ b/
JSDOC/TokenReader.js
@@
-150,7
+150,7
@@
const TokenReader = XObject.define(
//Seed.print('(@' + n);
var lt = this.lastSym(tokens, n);
//Seed.print('(@' + n);
var lt = this.lastSym(tokens, n);
-
Seed.
print(JSON.stringify(lt));
+
print(JSON.stringify(lt));
if (lt.type != 'KEYW' || ['IF', 'WHILE'].indexOf(lt.name) < -1) {
if (!this.ignoreBadGrammer) {
throw {
if (lt.type != 'KEYW' || ['IF', 'WHILE'].indexOf(lt.name) < -1) {
if (!this.ignoreBadGrammer) {
throw {
@@
-258,8
+258,8
@@
const TokenReader = XObject.define(
if (this.collapseWhite) {
found = "\n";
}
if (this.collapseWhite) {
found = "\n";
}
- if (this.keepWhite) {
- var last = tokens
.pop()
;
+
if (this.keepWhite) {
+ var last = tokens
? tokens.pop() : false
;
if (last && last.name != "WHIT") {
tokens.push(last);
}
if (last && last.name != "WHIT") {
tokens.push(last);
}