rename flag -meta to -ff

This commit is contained in:
z7zmey
2019-02-25 16:52:47 +02:00
parent 37c9c2092f
commit a7229f53dd
12 changed files with 55 additions and 55 deletions

View File

@@ -31,15 +31,15 @@ type Lval interface {
// Lexer php lexer
type Lexer struct {
*lex.Lexer
StateStack []int
PhpDocComment string
FreeFloating []freefloating.String
heredocLabel string
tokenBytesBuf *bytes.Buffer
TokenPool *TokenPool
WithMeta bool
lastToken *Token
Errors []*errors.Error
StateStack []int
PhpDocComment string
FreeFloating []freefloating.String
heredocLabel string
tokenBytesBuf *bytes.Buffer
TokenPool *TokenPool
WithFreeFloating bool
lastToken *Token
Errors []*errors.Error
}
// Rune2Class returns the rune integer id
@@ -163,10 +163,10 @@ func (l *Lexer) tokenString(chars []lex.Char) string {
return string(l.tokenBytesBuf.Bytes())
}
// meta
// free-floating
func (l *Lexer) addFreeFloating(t freefloating.StringType, chars []lex.Char) {
if !l.WithMeta {
if !l.WithFreeFloating {
return
}