• Home
  • Raw
  • Download

Lines Matching +full:helper +full:- +full:split +full:- +full:export +full:- +full:declaration

31     "declaration, using directive uuid virtual void volatile while typeof");
44 "debugger default delete do double else enum export extends false final " +
56 var kw = KEYWORDS[k].split(' ');
81 /** token style for a markup declaration such as a DOCTYPE. */
91 * n tokens can be represented as a series n - 1 token ends, as long as
111 * @param style one of the token styles defined in designdoc-template, or null
126 /** a helper class that decodes common html entities used to escape source and
187 var i = 0, j = s.length - 1;
189 while (j > i && PR_isSpaceChar(s.charAt(j))) { --j; }
199 suffix == s.substring(s.length - suffix.length, s.length);
219 /** split markup into chunks of html tags (style null) and
230 var pos = -1;
238 pos = i - 1;
256 pos = -1;
291 start = i - 1;
320 * of split tokens.
339 var tokLen = end - posAbs;
340 var remainingInChunk = chunk.token.length - posChunk;
351 tokLen = end - posAbs;
352 remainingInChunk = chunk.token.length - posChunk;
371 // A state machine to split out declarations, tags, etc.
376 // one big string, as they were before being split.
388 var tokenStart = -1; // the start of the current token
393 // <script>document.writeln('<!--');</script>
444 if ('-' == ch) {
461 if ('-' == ch) { state = 5; }
464 if ('-' == ch) { state = 6; }
470 } else if ('-' == ch) {
562 // a state machine to split out comments, strings, and other stuff
565 var delim = -1; // string delimiter
596 tokenEnds.push(new PR_TokenEnd(k + i - 1, PR_PLAIN));
599 tokenEnds.push(new PR_TokenEnd(k + i - 1, PR_PLAIN));
604 --i;
632 /** used by lexSource to split a non string, non comment token.
641 // if set to -1 then it will cause a reentry to state 0 without consuming
647 nstate = -2;
666 nstate = -1;
674 // 0.1 and 3e-6
675 // are each split into multiple tokens
677 nstate = -1;
683 nstate = -1;
717 t.substring(t.length - 2) == '_t') {
735 if (nstate == -1) {
738 i--;
747 /** split a group of chunks of markup.
757 /** split tags attributes and their values out from the tag name, and
895 // split off any starting and trailing <?, <%
975 * ['"foo"'] -> ['"', 'foo', '"']
986 for (var i = tokens.length; --i >= 0;) {
1004 if (lpos < 0) { lpos = ls.length - 1; }
1110 // split entities out of so that we know to treat them as single units.
1113 // split non comment|string tokens on whitespace and word boundaries
1137 * <!-- ... --> comment
1138 * <!\w ... > declaration
1154 // 2) Then split the text chunks further into comments, declarations,
1156 // After each split, consider whether the token is the start of an
1161 // 3) Finally go over each tag token and split out attribute names and values.
1176 // last non-whitespace character is a >
1181 for (var j = chunks.length; --j >= 0;) {