projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a19861c
)
JSDOC/TokenReader.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 10 Sep 2015 10:36:25 +0000
(18:36 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 10 Sep 2015 10:36:25 +0000
(18:36 +0800)
JSDOC/TokenReader.vala
patch
|
blob
|
history
diff --git
a/JSDOC/TokenReader.vala
b/JSDOC/TokenReader.vala
index
5922d11
..
a971019
100644
(file)
--- a/
JSDOC/TokenReader.vala
+++ b/
JSDOC/TokenReader.vala
@@
-113,7
+113,7
@@
namespace JSDOC {
return tokens;
return tokens;
- }
,
+ }
/**
* findPuncToken - find the id of a token (previous to current)
/**
* findPuncToken - find the id of a token (previous to current)
@@
-149,7
+149,7
@@
namespace JSDOC {
n--;
}
return -1;
n--;
}
return -1;
- }
,
+ }
/**
* lastSym - find the last token symbol
* need to back check syntax..
/**
* lastSym - find the last token symbol
* need to back check syntax..
@@
-158,14
+158,15
@@
namespace JSDOC {
* @arg {Number} offset where to start..
* @return {Token} the token
*/
* @arg {Number} offset where to start..
* @return {Token} the token
*/
- public Token lastSym(TokenArray tokens, int n) {
+ public Token lastSym(TokenArray tokens, int n)
+ {
for (var i = n-1; i >= 0; i--) {
if (!(tokens.get(i).is("WHIT") || tokens.get(i).is("COMM"))) {
return tokens.get(i);
}
}
return null;
for (var i = n-1; i >= 0; i--) {
if (!(tokens.get(i).is("WHIT") || tokens.get(i).is("COMM"))) {
return tokens.get(i);
}
}
return null;
- }
,
+ }
@@
-174,7
+175,7
@@
namespace JSDOC {
*/
public bool read_word (TokenStream stream, TokenArray tokens) {
var found = "";
*/
public bool read_word (TokenStream stream, TokenArray tokens) {
var found = "";
- while (!stream.look
().eof
&& Lang.isWordChar(stream.look())) {
+ while (!stream.look
EOF()
&& Lang.isWordChar(stream.look())) {
found += stream.next();
}
found += stream.next();
}
@@
-226,7
+227,7
@@
namespace JSDOC {
return true;
return true;
- }
,
+ }
/**
@returns {Boolean} Was the token found?
/**
@returns {Boolean} Was the token found?