Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Newlines (0.2 sec)

  1. src/go/printer/nodes.go

    // Common AST nodes.
    
    // Print as many newlines as necessary (but at least min newlines) to get to
    // the current line. ws is printed before the first line break. If newSection
    // is set, the first line break is printed as formfeed. Returns 0 if no line
    // breaks were printed, returns 1 if there was exactly one newline printed,
    // and returns a value > 1 if there was a formfeed or more than one newline
    // printed.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  2. src/html/template/escape_test.go

    				"foo( true );}</script>",
    		},
    		{
    			"JS multiline block comment",
    			"<script>for (;;) { if (c()) break/* foo not a label\n" +
    				" */foo({{.T}});}</script>",
    			// Newline separates break from call. If newline
    			// removed, then break will consume label leaving
    			// code invalid.
    			"<script>for (;;) { if (c()) break\n" +
    				"foo( true );}</script>",
    		},
    		{
    			"JS single-line block comment",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 56.2K bytes
    - Viewed (0)
  3. src/go/parser/parser.go

    }
    
    // expectClosing is like expect but provides a better error message
    // for the common case of a missing comma before a newline.
    func (p *parser) expectClosing(tok token.Token, context string) token.Pos {
    	if p.tok != tok && p.tok == token.SEMICOLON && p.lit == "\n" {
    		p.error(p.pos, "missing ',' before newline in "+context)
    		p.next()
    	}
    	return p.expect(tok)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  4. src/go/build/build.go

    	switch {
    	case bytes.HasPrefix(data, slashSlash):
    		comment, _, _ = bytes.Cut(data[2:], newline)
    	case bytes.HasPrefix(data, slashStar):
    		var ok bool
    		comment, _, ok = bytes.Cut(data[2:], starSlash)
    		if !ok {
    			// malformed comment
    			return "", 0
    		}
    		if bytes.Contains(comment, newline) {
    			return "", 0
    		}
    	}
    	comment = bytes.TrimSpace(comment)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/parser.go

    			text := commentText(msg)
    			if (col == colbase || msg[1] == '*') && strings.HasPrefix(text, "line ") {
    				var pos Pos // position immediately following the comment
    				if msg[1] == '/' {
    					// line comment (newline is part of the comment)
    					pos = MakePos(p.file, line+1, colbase)
    				} else {
    					// regular comment
    					// (if the comment spans multiple lines it's not
    					// a valid line directive and will be discarded
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  6. pilot/pkg/model/telemetry_logging_test.go

    	}{
    		{
    			name:     "empty",
    			expected: EnvoyTextLogFormat,
    		},
    		{
    			name:         "contains newline",
    			formatString: "[%START_TIME%] %REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% \n",
    			expected:     "[%START_TIME%] %REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% \n",
    		},
    		{
    			name:         "miss newline",
    			formatString: "[%START_TIME%] %REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  7. src/encoding/xml/marshal_test.go

    			AnyField: AnyHolder{XMLName: Name{Local: "empty"}},
    		},
    	},
    	{
    		ExpectXML: `<a><nested><value>newline: &#xA;; cr: &#xD;; tab: &#x9;;</value></nested><AnyField></AnyField></a>`,
    		Value: &AnyTest{
    			Nested:   "newline: \n; cr: \r; tab: \t;",
    			AnyField: AnyHolder{XMLName: Name{Local: "AnyField"}},
    		},
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  8. src/regexp/syntax/parse.go

    	Literal                         // treat pattern as literal string
    	ClassNL                         // allow character classes like [^a-z] and [[:space:]] to match newline
    	DotNL                           // allow . to match newline
    	OneLine                         // treat ^ and $ as only matching at beginning and end of text
    	NonGreedy                       // make repetition operators default to non-greedy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  9. src/testing/testing.go

    			// Found a frame that wasn't inside a helper function.
    			return frame
    		}
    	}
    	return firstFrame
    }
    
    // decorate prefixes the string with the file and line of the call site
    // and inserts the final newline if needed and indentation spaces for formatting.
    // This function must be called with c.mu held.
    func (c *common) decorate(s string, skip int) string {
    	frame := c.frameSkip(skip)
    	file := frame.File
    	line := frame.Line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  10. src/cmd/go/internal/test/test.go

    			norun = "[-fuzz matches more than one fuzz test, won't fuzz]"
    		}
    		if len(out) > 0 && !bytes.HasSuffix(out, []byte("\n")) {
    			// Ensure that the output ends with a newline before the "ok"
    			// line we're about to print (https://golang.org/issue/49317).
    			cmd.Stdout.Write([]byte("\n"))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top