Home
last modified time | relevance | path

Searched refs:tok (Results 1 – 25 of 70) sorted by relevance

123

/plugin/asciidocjs/node_modules/pug-parser/
Dindex.js171 runPlugin: function(context, tok) { argument
179 if (plugin[context] && plugin[context][tok.type]) {
180 …ndlers found for context ' + JSON.stringify(context) + ', token type ' + JSON.stringify(tok.type));
184 if (pluginContext) return pluginContext[tok.type].apply(pluginContext, rest);
285 var tok = this.advance();
288 val: tok.val,
289 line: tok.loc.start.line,
290 column: tok.loc.start.column,
295 var tok = this.advance();
298 val: tok.val,
[all …]
/plugin/asciidocjs/node_modules/pug-lexer/
Dindex.js109 tok: function(type, val){ method in Lexer
134 tokEnd: function(tok){ argument
135 tok.loc.end = {
139 return tok;
191 var tok = this.tok(type, val);
194 return tok;
202 var tok;
210 tok = this.tok(type, captures[1]);
212 return tok;
216 tok = this.tok(type, captures[1]);
[all …]
/plugin/asciidocjs/node_modules/nunjucks/src/
Dparser.js23 var tok;
28 tok = this.peeked;
30 return tok;
33 tok = this.tokens.nextToken();
35 while (tok && tok.type === lexer.TOKEN_WHITESPACE) {
36 tok = this.tokens.nextToken();
39 return tok;
45 _proto.pushToken = function pushToken(tok) { argument
49 this.peeked = tok;
53 var tok = this.peekToken() || {};
[all …]
Dlexer.js72 var tok;
82 } else if (tok = this._extract(whitespaceChars)) {
84 return token(TOKEN_WHITESPACE, tok, lineno, colno);
85 …} else if ((tok = this._extractString(this.tags.BLOCK_END)) || (tok = this._extractString('-' + th…
110 return token(TOKEN_BLOCK_END, tok, lineno, colno);
111 …} else if ((tok = this._extractString(this.tags.VARIABLE_END)) || (tok = this._extractString('-' +…
114 return token(TOKEN_VARIABLE_END, tok, lineno, colno);
202 tok = this._extractUntil(whitespaceChars + delimChars);
203 if (tok.match(/^[-+]?[0-9]+$/)) {
207 return token(TOKEN_FLOAT, tok + '.' + dec, lineno, colno);
[all …]
Djinja-compat.js104 var tok = this.peekToken();
105 if (tok.type !== lexer.TOKEN_LEFT_BRACKET) {
110 var node = new Slice(tok.lineno, tok.colno);
121 this.fail('parseSlice: too many slice components', tok.lineno, tok.colno);
137 return new nodes.Array(tok.lineno, tok.colno, [node]);
/plugin/asciidocjs/node_modules/acorn/src/loose/
Dexpression.js26 if (this.tok.type === tt.comma) {
48 …if (this.semicolon() || this.canInsertSemicolon() || (this.tok.type != tt.star && !this.tok.type.s…
60 if (this.tok.type.isAssign) {
62 node.operator = this.tok.value
63 node.left = this.tok.type === tt.eq ? this.toAssignable(left) : this.checkLVal(left)
92 let prec = this.tok.type.binop
93 if (prec != null && (!noIn || this.tok.type !== tt._in)) {
97 node.operator = this.tok.value
117 } else if (this.tok.type.prefix) {
118 let node = this.startNode(), update = this.tok.type === tt.incDec
[all …]
Dstate.js11 this.tok = this.last = {type: tt.eof, start: 0, end: 0}
14 this.tok.loc = new SourceLocation(this.toks, here, here)
28 return new Node(this.toks, this.tok.start, this.options.locations ? this.tok.loc.start : null)
32 return this.options.locations ? [this.tok.start, this.tok.loc.start] : this.tok.start
78 if (this.tok.type === type) {
87 return this.tok.type === tt.name && this.tok.value === name
91 return this.tok.value === name && this.eat(tt.name)
95 return this.tok.type === tt.eof || this.tok.type === tt.braceR ||
96 lineBreak.test(this.input.slice(this.last.end, this.tok.start))
136 if (this.tok.type === closeTok || this.tok.type === tt.eof) return true
[all …]
Dstatement.js10 while (this.tok.type !== tt.eof) node.body.push(this.parseStatement())
11 this.last = this.tok
19 let starttype = this.tok.type, node = this.startNode(), kind
33 node.label = this.tok.type === tt.name ? this.parseIdent() : null
54 if (this.tok.type === tt.semi) return this.parseFor(node, null)
56 if (isLet || this.tok.type === tt._var || this.tok.type === tt._const) {
57 let init = this.parseVar(true, isLet ? "let" : this.tok.value)
58 if (init.declarations.length === 1 && (this.tok.type === tt._in || this.isContextual("of"))) {
64 if (this.tok.type === tt._in || this.isContextual("of"))
95 if (this.tok.type === tt._case || this.tok.type === tt._default) {
[all …]
Dtokenize.js11 this.last = this.tok
13 this.tok = this.ahead.shift()
15 this.tok = this.readToken()
17 if (this.tok.start >= this.nextLineStart) {
18 while (this.tok.start >= this.nextLineStart) {
/plugin/asciidocjs/node_modules/with/node_modules/acorn/src/loose/
Dexpression.js26 if (this.tok.type === tt.comma) {
48 …if (this.semicolon() || this.canInsertSemicolon() || (this.tok.type != tt.star && !this.tok.type.s…
60 if (this.tok.type.isAssign) {
62 node.operator = this.tok.value
63 node.left = this.tok.type === tt.eq ? this.toAssignable(left) : this.checkLVal(left)
92 let prec = this.tok.type.binop
93 if (prec != null && (!noIn || this.tok.type !== tt._in)) {
97 node.operator = this.tok.value
114 if (this.tok.type.prefix) {
115 let node = this.startNode(), update = this.tok.type === tt.incDec
[all …]
Dstate.js11 this.tok = this.last = {type: tt.eof, start: 0, end: 0}
14 this.tok.loc = new SourceLocation(this.toks, here, here)
27 return new Node(this.toks, this.tok.start, this.options.locations ? this.tok.loc.start : null)
31 return this.options.locations ? [this.tok.start, this.tok.loc.start] : this.tok.start
77 if (this.tok.type === type) {
86 return this.tok.type === tt.name && this.tok.value === name
90 return this.tok.value === name && this.eat(tt.name)
94 return this.tok.type === tt.eof || this.tok.type === tt.braceR ||
95 lineBreak.test(this.input.slice(this.last.end, this.tok.start))
135 if (this.tok.type === closeTok || this.tok.type === tt.eof) return true
[all …]
Dstatement.js10 while (this.tok.type !== tt.eof) node.body.push(this.parseStatement())
11 this.last = this.tok
19 let starttype = this.tok.type, node = this.startNode(), kind
33 node.label = this.tok.type === tt.name ? this.parseIdent() : null
54 if (this.tok.type === tt.semi) return this.parseFor(node, null)
56 if (isLet || this.tok.type === tt._var || this.tok.type === tt._const) {
57 let init = this.parseVar(true, isLet ? "let" : this.tok.value)
58 if (init.declarations.length === 1 && (this.tok.type === tt._in || this.isContextual("of"))) {
64 if (this.tok.type === tt._in || this.isContextual("of"))
95 if (this.tok.type === tt._case || this.tok.type === tt._default) {
[all …]
Dtokenize.js11 this.last = this.tok
13 this.tok = this.ahead.shift()
15 this.tok = this.readToken()
17 if (this.tok.start >= this.nextLineStart) {
18 while (this.tok.start >= this.nextLineStart) {
/plugin/asciidocjs/node_modules/acorn/dist/
Dacorn_loose.es.js12 this.tok = this.last = {type: tokTypes.eof, start: 0, end: 0}
15 this.tok.loc = new SourceLocation(this.toks, here, here)
29 return new Node(this.toks, this.tok.start, this.options.locations ? this.tok.loc.start : null)
33 return this.options.locations ? [this.tok.start, this.tok.loc.start] : this.tok.start
79 if (this.tok.type === type) {
88 return this.tok.type === tokTypes.name && this.tok.value === name
92 return this.tok.value === name && this.eat(tokTypes.name)
96 return this.tok.type === tokTypes.eof || this.tok.type === tokTypes.braceR ||
97 lineBreak.test(this.input.slice(this.last.end, this.tok.start))
141 if (this.tok.type === closeTok || this.tok.type === tokTypes.eof) return true
[all …]
Dacorn_loose.js16 this.tok = this.last = {type: __acorn.tokTypes.eof, start: 0, end: 0}
19 this.tok.loc = new __acorn.SourceLocation(this.toks, here, here)
33 …return new __acorn.Node(this.toks, this.tok.start, this.options.locations ? this.tok.loc.start : n…
37 return this.options.locations ? [this.tok.start, this.tok.loc.start] : this.tok.start
83 if (this.tok.type === type) {
92 return this.tok.type === __acorn.tokTypes.name && this.tok.value === name
96 return this.tok.value === name && this.eat(__acorn.tokTypes.name)
100 return this.tok.type === __acorn.tokTypes.eof || this.tok.type === __acorn.tokTypes.braceR ||
101 __acorn.lineBreak.test(this.input.slice(this.last.end, this.tok.start))
145 if (this.tok.type === closeTok || this.tok.type === __acorn.tokTypes.eof) return true
[all …]
/plugin/asciidocjs/node_modules/with/node_modules/acorn/dist/
Dacorn_loose.es.js12 this.tok = this.last = {type: tokTypes.eof, start: 0, end: 0}
15 this.tok.loc = new SourceLocation(this.toks, here, here)
28 return new Node(this.toks, this.tok.start, this.options.locations ? this.tok.loc.start : null)
32 return this.options.locations ? [this.tok.start, this.tok.loc.start] : this.tok.start
78 if (this.tok.type === type) {
87 return this.tok.type === tokTypes.name && this.tok.value === name
91 return this.tok.value === name && this.eat(tokTypes.name)
95 return this.tok.type === tokTypes.eof || this.tok.type === tokTypes.braceR ||
96 lineBreak.test(this.input.slice(this.last.end, this.tok.start))
140 if (this.tok.type === closeTok || this.tok.type === tokTypes.eof) return true
[all …]
Dacorn_loose.js18 this.tok = this.last = {type: acorn.tokTypes.eof, start: 0, end: 0}
21 this.tok.loc = new acorn.SourceLocation(this.toks, here, here)
34 …return new acorn.Node(this.toks, this.tok.start, this.options.locations ? this.tok.loc.start : nul…
38 return this.options.locations ? [this.tok.start, this.tok.loc.start] : this.tok.start
84 if (this.tok.type === type) {
93 return this.tok.type === acorn.tokTypes.name && this.tok.value === name
97 return this.tok.value === name && this.eat(acorn.tokTypes.name)
101 return this.tok.type === acorn.tokTypes.eof || this.tok.type === acorn.tokTypes.braceR ||
102 acorn.lineBreak.test(this.input.slice(this.last.end, this.tok.start))
146 if (this.tok.type === closeTok || this.tok.type === acorn.tokTypes.eof) return true
[all …]
/plugin/asciidocjs/node_modules/pug-strip-comments/
Dindex.js28 return input.filter(function (tok) { argument
29 switch (tok.type) {
33 'comment', 'already in a comment', filename, tok.line
36 inComment = tok.buffer ? stripBuffered : stripUnbuffered;
44 filename, tok.line
54 filename, tok.line
/plugin/code3/src/
Dtz.js1009 var tok = tokens[ci];
1010 if (PR_TAG == tok.style) {
1011 var s = tok.token;
1102 if (tok.style) {
1106 tokensOut.push(tok);
1126 var tok;
1129 tok = tokens[ci];
1130 if (null == tok.style) {
1131 tokens.push(tok);
1139 tok = new PR_Token('', null);
[all …]
/plugin/asciidocjs/node_modules/nunjucks/browser/
Dnunjucks.js2856 var tok;
2861 tok = this.peeked;
2863 return tok;
2866 tok = this.tokens.nextToken();
2868 while (tok && tok.type === lexer.TOKEN_WHITESPACE) {
2869 tok = this.tokens.nextToken();
2872 return tok;
2878 _proto.pushToken = function pushToken(tok) {
2882 this.peeked = tok;
2886 var tok = this.peekToken() || {};
[all …]
/plugin/json/
Dhelper.php330 foreach($f['tokens'] as $tok) {
331 if(is_array($v) && isset($v[$tok])) {
332 $v = $v[$tok];
473 foreach($row_insert['property_path'] as $tok) {
477 $item_copy[$tok] = null;
478 $item_copy = &$item_copy[$tok];
666 foreach($path['tokens'] as $tok) {
668 $json_parent_tok = $tok;
670 $json = array($tok => null);
672 $json = &$json[$tok];
[all …]
/plugin/cli/
Dsyntax.php460 $tok='';
470 case '+' : $tok .= $c; break;
471 case '-' : $tok = substr($tok, 0, -1).$c; break;
472 case 'A' : $toks[] = $tok; $tok=''; break;
473 case 'A+' : $toks[] = $tok; $tok=$c; break;
478 if($tok != '') {
480 $toks[] = $tok;
482 … msg( 'In <cli ...>, ignored malformed text «'.hsc($tok).'».', 2, '', '', MSG_USERS_ONLY );
/plugin/asciidocjs/node_modules/pug-filters/node_modules/uglify-js/lib/
Dparse.js425 var tok = token("string", ret);
426 tok.quote = quote_char;
427 return tok;
592 var tok = handle_slash();
593 if (tok === next_token) continue;
594 return tok;
1233 var tok = S.token, ret;
1234 switch (tok.type) {
1240 ret = new AST_Number({ start: tok, end: tok, value: tok.value });
1244 start : tok,
[all …]
/plugin/mizarverifiabledocs/script/
H A Dmiz_parser.py157 for tok in LABEL_RE.findall(seg):
158 tok = tok.rstrip()
159 if FOLD_RE.fullmatch(tok):
163 if tok in internal_labels and INTERNAL_RE.fullmatch(tok):
164 refs.add(tok)
168 art = tok.split(":")[0] # “XBOOLE_0:7” → “XBOOLE_0”
/plugin/json/syntax/
Dextract.php198 foreach($tokens as $tok) {
199 if(is_array($v) && isset($v[$tok])) {
200 $v = $v[$tok];
316 foreach($tokens as $tok) {
317 if(is_array($v) && isset($v[$tok])) {
318 $v = $v[$tok];
568 $tok = explode(':', $id);
569 $last = $tok[count($tok) - 1];

123