Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,557 for comment2 (0.12 sec)

  1. src/go/build/build.go

    		comment, _, ok = bytes.Cut(data[2:], starSlash)
    		if !ok {
    			// malformed comment
    			return "", 0
    		}
    		if bytes.Contains(comment, newline) {
    			return "", 0
    		}
    	}
    	comment = bytes.TrimSpace(comment)
    
    	// split comment into `import`, `"pkg"`
    	word, arg := parseWord(comment)
    	if string(word) != "import" {
    		return "", 0
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  2. src/os/user/lookup_unix_test.go

    	{testGroupFile, "notinthefile", ""},
    	{testGroupFile, "comment", ""},
    	{testGroupFile, "plussign", ""},
    	{testGroupFile, "+plussign", ""},
    	{testGroupFile, "-minussign", ""},
    	{testGroupFile, "minussign", ""},
    	{testGroupFile, "emptyid", ""},
    	{testGroupFile, "invalidgid", ""},
    	{testGroupFile, "indented", "7"},
    	{testGroupFile, "# comment", ""},
    	{testGroupFile, "largegroup", "1000"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 04:31:34 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  3. operator/pkg/util/yaml_test.go

    			expect: true,
    		},
    		{
    			desc: "comment-logically-empty",
    			in: `# this is a comment
    # this is another comment that serves no purpose
    # (like all comments usually do)
    `,
    			expect: true,
    		},
    		{
    			desc:   "start-yaml",
    			in:     `--- I dont mean anything`,
    			expect: true,
    		},
    		{
    			desc: "combine-comments-and-yaml",
    			in: `#this is another comment
    foo: bar
    # ^ that serves purpose
    `,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 17:00:14 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. src/html/template/transition.go

    			}, len(s)
    		}
    	// ECMAScript supports HTML style comments for legacy reasons, see Appendix
    	// B.1.1 "HTML-like Comments". The handling of these comments is somewhat
    	// confusing. Multi-line comments are not supported, i.e. anything on lines
    	// between the opening and closing tokens is not considered a comment, but
    	// anything following the opening or closing token, on the same line, is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 19:54:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. src/internal/profile/encode.go

    		pt.Type, err = getString(p.stringTable, &pt.typeX, err)
    		pt.Unit, err = getString(p.stringTable, &pt.unitX, err)
    	}
    	for _, i := range p.commentX {
    		var c string
    		c, err = getString(p.stringTable, &i, err)
    		p.Comments = append(p.Comments, c)
    	}
    
    	p.commentX = nil
    	p.DefaultSampleType, err = getString(p.stringTable, &p.defaultSampleTypeX, err)
    	p.stringTable = nil
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  6. src/encoding/xml/read.go

    //     If there is no such field, the character data is discarded.
    //
    //   - If the XML element contains comments, they are accumulated in
    //     the first struct field that has tag ",comment".  The struct
    //     field may have type []byte or string. If there is no such
    //     field, the comments are discarded.
    //
    //   - If the XML element contains a sub-element whose name matches
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  7. src/cmd/gofmt/gofmt_test.go

    	var s scanner.Scanner
    	s.Init(f)
    	s.Error = func(*scanner.Scanner, string) {}       // ignore errors
    	s.Mode = scanner.GoTokens &^ scanner.SkipComments // want comments
    
    	// look for //gofmt comment
    	for s.Line <= maxLines {
    		switch s.Scan() {
    		case scanner.Comment:
    			const prefix = "//gofmt "
    			if t := s.TokenText(); strings.HasPrefix(t, prefix) {
    				return strings.TrimSpace(t[len(prefix):])
    			}
    		case scanner.EOF:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 19:22:49 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  8. test/fixedbugs/issue11771.go

    //go:build !nacl && !js && !wasip1 && gc
    
    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 11771: Magic comments should ignore carriage returns.
    
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"io/ioutil"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    )
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/go/doc/reader.go

    			})
    		}
    	}
    }
    
    // readNotes extracts notes from comments.
    // A note must start at the beginning of a comment with "MARKER(uid):"
    // and is followed by the note body (e.g., "// BUG(gri): fix this").
    // The note ends at the end of the comment group or at the start of
    // another note in the same comment group, whichever comes first.
    func (r *reader) readNotes(comments []*ast.CommentGroup) {
    	for _, group := range comments {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/check_test.go

    // starts with "//" (line comment) followed by "-" (possibly with spaces
    // between). Otherwise the line is ignored.
    func parseFlags(src []byte, flags *flag.FlagSet) error {
    	// we must have a line comment that starts with a "-"
    	const prefix = "//"
    	if !bytes.HasPrefix(src, []byte(prefix)) {
    		return nil // first line is not a line comment
    	}
    	src = src[len(prefix):]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top