Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for lexVariable (0.08 sec)

  1. src/text/template/parse/lex.go

    	}
    }
    
    // lexField scans a field: .Alphanumeric.
    // The . has been scanned.
    func lexField(l *lexer) stateFn {
    	return lexFieldOrVariable(l, itemField)
    }
    
    // lexVariable scans a Variable: $Alphanumeric.
    // The $ has been scanned.
    func lexVariable(l *lexer) stateFn {
    	if l.atTerminator() { // Nothing interesting follows -> "$".
    		return l.emit(itemVariable)
    	}
    	return lexFieldOrVariable(l, itemVariable)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 22:36:12 UTC 2022
    - 18.1K bytes
    - Viewed (0)
Back to top