Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 155 for _Colon (0.27 sec)

  1. test/fixedbugs/issue18092.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func _() {
    	var ch chan bool
    	select {
    	default:
    	case <-ch { // GCCGO_ERROR "expected colon"
    	}           // GC_ERROR "expected :"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 01 22:37:04 UTC 2022
    - 320 bytes
    - Viewed (0)
  2. common/config/sass-lint.yml

      quotes:
        - 2
        -
          style: double
      shorthand-values: 2
      single-line-per-selector: 0
      space-after-bang: 2
      space-after-colon: 2
      space-after-comma: 2
      space-around-operator: 2
      space-before-bang: 2
      space-before-brace: 2
      space-before-colon: 2
      space-between-parens: 2
      trailing-semicolon: 2
      url-quotes: 2
      variable-for-property:
        - 0
        -
          properties:
            - color
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 11 23:32:21 UTC 2019
    - 2K bytes
    - Viewed (0)
  3. src/os/user/listgroups_unix.go

    		//	tcpdump:x:72:
    		listIdx := bytes.LastIndexByte(line, ':')
    		if listIdx == -1 || listIdx == len(line)-1 {
    			// No commas, or empty group list.
    			continue
    		}
    		if bytes.Count(line[:listIdx], colon) != 2 {
    			// Incorrect number of colons.
    			continue
    		}
    		list := line[listIdx+1:]
    		// Check the list for user without splitting or copying.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/parser_test.go

    		{"//line\n", valid, filename, 2, 1},        // missing colon
    		{"//line foo\n", valid, filename, 2, 1},    // missing colon
    		{"  //line foo:\n", valid, filename, 2, 1}, // not a line start
    		{"//  line foo:\n", valid, filename, 2, 1}, // space between // and line
    
    		// invalid //line directives with one colon
    		{"//line :\n", "invalid line number: ", filename, 1, 9},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/os/user/lookup_unix.go

    // fn for each row. readColonFile returns a value, an error, or (nil, nil) if
    // the end of the file is reached without a match.
    //
    // readCols is the minimum number of colon-separated fields that will be passed
    // to fn; in a long line additional fields may be silently discarded.
    func readColonFile(r io.Reader, fn lineFunc, readCols int) (v any, err error) {
    	rd := bufio.NewReader(r)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. test/fixedbugs/bug274.go

    // Each statement in the list of statements for each case clause must be
    // terminated with a semicolon. No semicolon is present for the labeled
    // statements and because the last token is a colon ":", no semicolon is
    // inserted automatically.
    //
    // Both gccgo and gofmt correctly refuse this program as is and accept it
    // when the semicolons are present.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 888 bytes
    - Viewed (0)
  7. src/net/ipsock.go

    		case len(hostport):
    			// There can't be a ':' behind the ']' now.
    			return addrErr(hostport, missingPort)
    		case i:
    			// The expected result.
    		default:
    			// Either ']' isn't followed by a colon, or it is
    			// followed by a colon that is not the last one.
    			if hostport[end+1] == ':' {
    				return addrErr(hostport, tooManyColons)
    			}
    			return addrErr(hostport, missingPort)
    		}
    		host = hostport[1:end]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/go/parser/parser.go

    	return x
    }
    
    func (p *parser) parseElement() ast.Expr {
    	if p.trace {
    		defer un(trace(p, "Element"))
    	}
    
    	x := p.parseValue()
    	if p.tok == token.COLON {
    		colon := p.pos
    		p.next()
    		x = &ast.KeyValueExpr{Key: x, Colon: colon, Value: p.parseValue()}
    	}
    
    	return x
    }
    
    func (p *parser) parseElementList() (list []ast.Expr) {
    	if p.trace {
    		defer un(trace(p, "ElementList"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  9. src/go/printer/testdata/parser.go

    	}
    
    	if p.tok == token.LBRACE {
    		return p.parseLiteralValue(nil)
    	}
    
    	x := p.parseExpr(keyOk) // don't resolve if map key
    	if keyOk {
    		if p.tok == token.COLON {
    			colon := p.pos
    			p.next()
    			return &ast.KeyValueExpr{x, colon, p.parseElement(false)}
    		}
    		p.resolve(x) // not a map key
    	}
    
    	return x
    }
    
    func (p *parser) parseElementList() (list []ast.Expr) {
    	if p.trace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  10. src/go/ast/ast.go

    		return true
    	}
    
    	// "//[a-z0-9]+:[a-z0-9]"
    	// (The // has been removed.)
    	colon := strings.Index(c, ":")
    	if colon <= 0 || colon+1 >= len(c) {
    		return false
    	}
    	for i := 0; i <= colon+1; i++ {
    		if i == colon {
    			continue
    		}
    		b := c[i]
    		if !('a' <= b && b <= 'z' || '0' <= b && b <= '9') {
    			return false
    		}
    	}
    	return true
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
Back to top