/external/python/cpython3/Lib/test/ |
D | test_tokenize.py | 5 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 …]
|
D | test_univnewlines.py | 62 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/ |
D | TestHistory.java | 22 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/ |
D | test_univnewlines2k.py | 53 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
|
D | test_univnewlines.py | 63 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/ |
D | glcpp-lex.l | 130 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) 225 RETURN_TOKEN_NEVER_SKIP (NEWLINE); 273 <COMMENT>[^*\r\n]*{NEWLINE} { yylineno++; yycolumn = 0; parser->commented_newlines++; } 275 <COMMENT>"*"+[^*/\r\n]*{NEWLINE} { yylineno++; yycolumn = 0; parser->commented_newlines++; } 335 <HASH>{NEWLINE} { 340 RETURN_TOKEN_NEVER_SKIP (NEWLINE); 573 <*>{NEWLINE} { [all …]
|
D | glcpp-parse.y | 196 …OKEN GARBAGE IDENTIFIER IF_EXPANDED INTEGER INTEGER_STRING LINE_EXPANDED NEWLINE OTHER PLACEHOLDER… 236 IF_EXPANDED expression NEWLINE { 241 | ELIF_EXPANDED expression NEWLINE { 246 | LINE_EXPANDED integer_constant NEWLINE { 251 | LINE_EXPANDED integer_constant integer_constant NEWLINE { 260 | LINE_EXPANDED integer_constant PATH NEWLINE { 270 OBJ_IDENTIFIER replacement_list NEWLINE { 273 | FUNC_IDENTIFIER '(' ')' replacement_list NEWLINE { 276 | FUNC_IDENTIFIER '(' identifier_list ')' replacement_list NEWLINE { 286 | HASH_TOKEN LINE pp_tokens NEWLINE { [all …]
|
/external/python/cpython3/Tools/peg_generator/pegen/ |
D | metagrammar.gram | 43 | "@" NAME NEWLINE { (name.string, None) } 44 | "@" a=NAME b=NAME NEWLINE { (a.string, b.string) } 45 | "@" NAME STRING NEWLINE { (name.string, literal_eval(string.string)) } 52 | rulename memoflag? ":" alts NEWLINE INDENT more_alts DEDENT { 54 | rulename memoflag? ":" NEWLINE INDENT more_alts DEDENT { 56 | rulename memoflag? ":" alts NEWLINE { Rule(rulename[0], rulename[1], alts, memo=opt) } 72 | "|" alts NEWLINE more_alts { Rhs(alts.alts + more_alts.alts) } 73 | "|" alts NEWLINE { Rhs(alts.alts) }
|
/external/antlr/runtime/Perl5/examples/expr/ |
D | Expr.g | 16 stat: expr NEWLINE { print "$expr.value\n"; } 17 | ID '=' expr NEWLINE 19 | NEWLINE 49 NEWLINE:'\r'? '\n' ;
|
/external/python/cpython3/Lib/test/test_peg_generator/ |
D | test_pegen.py | 7 from tokenize import TokenInfo, NAME, NEWLINE, NUMBER, OP 92 TokenInfo(NEWLINE, string="\n", start=(1, 2), end=(1, 3), line="42\n"), 100 TokenInfo(NEWLINE, string="\n", start=(1, 4), end=(1, 5), line="1, 2\n"), 113 TokenInfo(NEWLINE, string="\n", start=(1, 2), end=(1, 3), line="42\n"), 132 TokenInfo(NEWLINE, string="\n", start=(1, 3), end=(1, 4), line="1+2\n"), 137 TokenInfo(NEWLINE, string="\n", start=(1, 1), end=(1, 2), line="1\n"), 153 TokenInfo(NEWLINE, string="\n", start=(1, 2), end=(1, 3), line="1+\n"), 158 TokenInfo(NEWLINE, string="\n", start=(1, 1), end=(1, 2), line="1\n"), 177 TokenInfo(NEWLINE, string="\n", start=(1, 5), end=(1, 6), line="1 + 2\n"), 182 TokenInfo(NEWLINE, string="\n", start=(1, 1), end=(1, 2), line="1\n"), [all …]
|
/external/python/cpython3/Grammar/ |
D | Grammar | 11 # NB: compound_stmt in single_input is followed by extra NEWLINE! 12 # NB: due to the way TYPE_COMMENT is tokenized it will always be followed by a NEWLINE 13 single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE 14 file_input: (NEWLINE | stmt)* ENDMARKER 15 eval_input: testlist NEWLINE* ENDMARKER 17 decorator: '@' namedexpr_test NEWLINE 82 simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE 128 suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT 200 func_body_suite: simple_stmt | NEWLINE [TYPE_COMMENT NEWLINE] INDENT stmt+ DEDENT 202 func_type_input: func_type NEWLINE* ENDMARKER
|
/external/antlr/runtime/Perl5/examples/mexpr/ |
D | MExpr.g | 9 stat: expr NEWLINE { print "$expr.value\n"; } 10 | NEWLINE 27 NEWLINE:'\r'? '\n' ;
|
/external/python/cpython2/Grammar/ |
D | Grammar | 17 # 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/ |
D | Grammar.txt | 17 #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/antlr/runtime/Perl5/t/examples/ |
D | expr.t | 23 stat: expr NEWLINE { print "$expr.value\n"; } 24 | ID '=' expr NEWLINE 26 | NEWLINE 56 NEWLINE:'\r'? '\n' ;
|
/external/python/cpython3/Lib/lib2to3/ |
D | Grammar.txt | 10 # 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/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/BuildOptions/ |
D | DebugGrammar.g3 | 56 stat: expr NEWLINE -> expr 57 | ID '=' expr NEWLINE -> ^('=' ID expr) 58 | func NEWLINE -> func 59 | NEWLINE -> // ignore 97 NEWLINE
|
D | ProfileGrammar.g3 | 56 stat: expr NEWLINE -> expr 57 | ID '=' expr NEWLINE -> ^('=' ID expr) 58 | func NEWLINE -> func 59 | NEWLINE -> // ignore 97 NEWLINE
|
/external/deqp/framework/randomshaders/ |
D | rsgShader.cpp | 97 … 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()
|
D | rsgStatement.cpp | 205 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/ |
D | lexer.py | 7 NEWLINE = "NEWLINE" variable in Lexer 37 if token_type not in {Lexer.NEWLINE}: 59 return (Lexer.NEWLINE, None, location) 64 return (Lexer.NEWLINE, None, location)
|
/external/python/cpython2/Tools/scripts/ |
D | cleanfuture.py | 159 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/ |
D | cleanfuture.py | 158 NEWLINE = tokenize.NEWLINE 168 while type in (COMMENT, NL, NEWLINE): 178 while type in (COMMENT, NL, NEWLINE): 210 if type is not NEWLINE:
|
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/javadoc/ |
D | JavadocWriter.java | 22 import static com.google.googlejavaformat.java.javadoc.JavadocWriter.RequestedWhitespace.NEWLINE; 269 requestWhitespace(NEWLINE); in requestNewline() 286 NEWLINE, enumConstant 305 requestedWhitespace = NEWLINE; in writeToken() 311 } else if (requestedWhitespace == NEWLINE) { in writeToken()
|
/external/python/cpython2/Doc/reference/ |
D | toplevel_components.rst | 69 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
|