Home
last modified time | relevance | path

Searched refs:NEWLINE (Results 1 – 25 of 176) sorted by relevance

12345678

/external/python/cpython3/Lib/test/
Dtest_tokenize.py5 NEWLINE)
28 if missing_trailing_nl and type == NEWLINE and end[0] == num_lines:
57 self.assertEqual(tokens[-2].type, NEWLINE)
596 NEWLINE '\\n' (1, 16) (1, 17)
616 NEWLINE '\\n' (1, 13) (1, 14)
638 NEWLINE '\\n' (1, 8) (1, 9)
642 NEWLINE '\\n' (2, 5) (2, 6)
655 NEWLINE '\\n' (1, 16) (1, 17)
667 NEWLINE '\\n' (1, 17) (1, 18)
758 NEWLINE '\\n' (1, 5) (1, 6)
[all …]
Dtest_univnewlines.py62 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
68 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
78 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
92 NEWLINE = '\r' variable in TestCRNewlines
98 NEWLINE = '\n' variable in TestLFNewlines
104 NEWLINE = '\r\n' variable in TestCRLFNewlines
112 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
117 NEWLINE = ('\r', '\n') variable in TestMixedNewlines
/external/jline/src/src/test/java/jline/
DTestHistory.java22 append("test line 1").op(ConsoleReader.NEWLINE). in testSingleHistory()
23 append("test line 2").op(ConsoleReader.NEWLINE). in testSingleHistory()
24 append("test line 3").op(ConsoleReader.NEWLINE). in testSingleHistory()
25 append("test line 4").op(ConsoleReader.NEWLINE). in testSingleHistory()
26 append("test line 5").op(ConsoleReader.NEWLINE). in testSingleHistory()
59 .op(ConsoleReader.NEWLINE); in testSingleHistory()
68 assertBuffer("XXXtest line 4", b = b.op(ConsoleReader.NEWLINE). in testSingleHistory()
70 assertBuffer("XXXtest line 4", b = b.op(ConsoleReader.NEWLINE). in testSingleHistory()
72 assertBuffer("XXXtest line 4", b = b.op(ConsoleReader.NEWLINE). in testSingleHistory()
74 assertBuffer("XXXtest line 4", b = b.op(ConsoleReader.NEWLINE). in testSingleHistory()
/external/python/cpython2/Lib/test/
Dtest_univnewlines2k.py53 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
59 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
69 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
91 NEWLINE = None variable in TestNativeNewlines
97 NEWLINE = '\r' variable in TestCRNewlines
101 NEWLINE = '\n' variable in TestLFNewlines
105 NEWLINE = '\r\n' variable in TestCRLFNewlines
113 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
116 NEWLINE = ('\r', '\n') variable in TestMixedNewlines
Dtest_univnewlines.py63 self.assertEqual(set(fp.newlines), set(self.NEWLINE))
69 self.assertEqual(set(fp.newlines), set(self.NEWLINE))
79 self.assertEqual(set(fp.newlines), set(self.NEWLINE))
93 NEWLINE = '\r' variable in TestCRNewlines
97 NEWLINE = '\n' variable in TestLFNewlines
101 NEWLINE = '\r\n' variable in TestCRLFNewlines
109 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
112 NEWLINE = ('\r', '\n') variable in TestMixedNewlines
/external/mesa3d/src/compiler/glsl/glcpp/
Dglcpp-lex.l130 if (token != NEWLINE && token != SPACE && token != HASH_TOKEN && in glcpp_lex_update_state_per_token()
137 if (token == NEWLINE) { in glcpp_lex_update_state_per_token()
145 if (token == NEWLINE) { in glcpp_lex_update_state_per_token()
187 NEWLINE (\r\n|\n\r|\r|\n)
224 RETURN_TOKEN_NEVER_SKIP (NEWLINE);
272 <COMMENT>[^*\r\n]*{NEWLINE} { yylineno++; yycolumn = 0; parser->commented_newlines++; }
274 <COMMENT>"*"+[^*/\r\n]*{NEWLINE} { yylineno++; yycolumn = 0; parser->commented_newlines++; }
328 <HASH>{NEWLINE} {
333 RETURN_TOKEN_NEVER_SKIP (NEWLINE);
547 <*>{NEWLINE} {
[all …]
Dglcpp-parse.y178 …OKEN GARBAGE IDENTIFIER IF_EXPANDED INTEGER INTEGER_STRING LINE_EXPANDED NEWLINE OTHER PLACEHOLDER…
218 IF_EXPANDED expression NEWLINE {
223 | ELIF_EXPANDED expression NEWLINE {
228 | LINE_EXPANDED integer_constant NEWLINE {
233 | LINE_EXPANDED integer_constant integer_constant NEWLINE {
245 OBJ_IDENTIFIER replacement_list NEWLINE {
248 | FUNC_IDENTIFIER '(' ')' replacement_list NEWLINE {
251 | FUNC_IDENTIFIER '(' identifier_list ')' replacement_list NEWLINE {
261 | HASH_TOKEN LINE pp_tokens NEWLINE {
275 | HASH_TOKEN UNDEF IDENTIFIER NEWLINE {
[all …]
/external/antlr/runtime/Perl5/examples/expr/
DExpr.g16 stat: expr NEWLINE { print "$expr.value\n"; }
17 | ID '=' expr NEWLINE
19 | NEWLINE
49 NEWLINE:'\r'? '\n' ;
/external/python/cpython2/Grammar/
DGrammar17 # NB: compound_stmt in single_input is followed by extra NEWLINE!
18 single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
19 file_input: (NEWLINE | stmt)* ENDMARKER
20 eval_input: testlist NEWLINE* ENDMARKER
22 decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE
34 simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
78 suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
/external/python/cpython2/Lib/lib2to3/
DGrammar.txt17 #diagram:token NEWLINE
29 # NB: compound_stmt in single_input is followed by extra NEWLINE!
30 file_input: (NEWLINE | stmt)* ENDMARKER
31 single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
32 eval_input: testlist NEWLINE* ENDMARKER
34 decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE
53 simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
99 suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
/external/python/cpython3/Lib/lib2to3/
DGrammar.txt10 # NB: compound_stmt in single_input is followed by extra NEWLINE!
11 file_input: (NEWLINE | stmt)* ENDMARKER
12 single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
13 eval_input: testlist NEWLINE* ENDMARKER
15 decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE
35 simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
83 suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
/external/python/cpython3/Grammar/
DGrammar10 # NB: compound_stmt in single_input is followed by extra NEWLINE!
11 single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
12 file_input: (NEWLINE | stmt)* ENDMARKER
13 eval_input: testlist NEWLINE* ENDMARKER
15 decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE
38 simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
84 suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
/external/antlr/runtime/Perl5/examples/mexpr/
DMExpr.g9 stat: expr NEWLINE { print "$expr.value\n"; }
10 | NEWLINE
27 NEWLINE:'\r'? '\n' ;
/external/antlr/runtime/Perl5/t/examples/
Dexpr.t23 stat: expr NEWLINE { print "$expr.value\n"; }
24 | ID '=' expr NEWLINE
26 | NEWLINE
56 NEWLINE:'\r'? '\n' ;
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/BuildOptions/
DDebugGrammar.g356 stat: expr NEWLINE -> expr
57 | ID '=' expr NEWLINE -> ^('=' ID expr)
58 | func NEWLINE -> func
59 | NEWLINE -> // ignore
97 NEWLINE
DProfileGrammar.g356 stat: expr NEWLINE -> expr
57 | ID '=' expr NEWLINE -> ^('=' ID expr)
58 | func NEWLINE -> func
59 | NEWLINE -> // ignore
97 NEWLINE
/external/deqp/framework/randomshaders/
DrsgShader.cpp97 … Token::PRECISION << Token::MEDIUM_PRECISION << Token::FLOAT << Token::SEMICOLON << Token::NEWLINE; in tokenize()
106 str << Token::NEWLINE; in tokenize()
111 str << Token::NEWLINE; in tokenize()
144 str << Token::RIGHT_PAREN << Token::NEWLINE; in tokenize()
DrsgStatement.cpp205 str << Token::LEFT_BRACE << Token::NEWLINE << Token::INDENT_INC; in tokenize()
210 str << Token::INDENT_DEC << Token::RIGHT_BRACE << Token::NEWLINE; in tokenize()
223 str << Token::SEMICOLON << Token::NEWLINE; in tokenize()
343 str << Token::SEMICOLON << Token::NEWLINE; in tokenize()
463 str << Token::RIGHT_PAREN << Token::NEWLINE; in tokenize()
485 str << Token::NEWLINE; in tokenize()
490 str << Token::NEWLINE << Token::INDENT_INC; in tokenize()
560 str << Token::SEMICOLON << Token::NEWLINE; in tokenize()
/external/fonttools/Lib/fontTools/voltLib/
Dlexer.py9 NEWLINE = "NEWLINE" variable in Lexer
39 if token_type not in {Lexer.NEWLINE}:
58 return (Lexer.NEWLINE, None, location)
63 return (Lexer.NEWLINE, None, location)
/external/python/cpython2/Tools/scripts/
Dcleanfuture.py159 NEWLINE = tokenize.NEWLINE
169 while type in (COMMENT, NL, NEWLINE):
179 while type in (COMMENT, NL, NEWLINE):
211 if type is not NEWLINE:
/external/python/cpython3/Tools/scripts/
Dcleanfuture.py159 NEWLINE = tokenize.NEWLINE
169 while type in (COMMENT, NL, NEWLINE):
179 while type in (COMMENT, NL, NEWLINE):
211 if type is not NEWLINE:
/external/python/cpython2/Doc/reference/
Dtoplevel_components.rst69 file_input: (NEWLINE | `statement`)*
88 interactive_input: [`stmt_list`] NEWLINE | `compound_stmt` NEWLINE
107 eval_input: `expression_list` NEWLINE*
114 input_input: `expression_list` NEWLINE
/external/cldr/tools/java/org/unicode/cldr/icu/
DConvertTransforms.java53 static final String HELP_TEXT1 = "Use the following options" + XPathParts.NEWLINE
54 + "-h or -?\t for this message" + XPathParts.NEWLINE
56 + CldrUtility.getCanonicalName(CLDRPaths.MAIN_DIRECTORY) + XPathParts.NEWLINE
57 + "\tExample:-sC:\\Unicode-CVS2\\cldr\\common\\gen\\source\\" + XPathParts.NEWLINE
59 + CldrUtility.getCanonicalName(CLDRPaths.GEN_DIRECTORY + "main/") + XPathParts.NEWLINE
60 + "-m<regex>\t to restrict the files to what matches <regex>" + XPathParts.NEWLINE
61 + "-a\t to only include transforms with approved/contributed status" + XPathParts.NEWLINE
/external/antlr/runtime/JavaScript/tests/functional/
DPython.g77 : NEWLINE
79 | compound_stmt NEWLINE
83 : (NEWLINE | stmt)*
87 : (NEWLINE)* testlist (NEWLINE)*
129 : small_stmt (options {greedy=true;}:SEMI small_stmt)* (SEMI)? NEWLINE
254 | NEWLINE INDENT (stmt)+ DEDENT
538 NEWLINE
590 Only match \n here if we didn't start on left edge; let NEWLINE return that.
600 | {this.startPos>0}?=> '#' (~'\n')* // let NEWLINE handle \n unless char pos==0 for '#'
/external/icu/android_icu4j/src/main/java/android/icu/util/
DVTimeZone.java224 bw.write(NEWLINE); in write()
231 bw.write(NEWLINE); in write()
235 bw.write(NEWLINE); in write()
390 private static final String NEWLINE = "\r\n"; // CRLF field in VTimeZone
1224 w.write(NEWLINE); in writeZone()
1504 writer.write(NEWLINE); in writeZonePropsByTime()
1524 writer.write(NEWLINE); in writeZonePropsByDOM()
1545 writer.write(NEWLINE); in writeZonePropsByDOW()
1630 writer.write(NEWLINE); in writeZonePropsByDOW_GEQ_DOM_sub()
1782 writer.write(NEWLINE); in beginZoneProps()
[all …]

12345678