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

@@ -57,8 +57,8 @@ func (l *Parser) Error(msg string) {
l.Lexer.Errors = append(l.Lexer.Errors, errors.NewError(msg, pos))
}
func (l *Parser) WithMeta() {
l.Lexer.WithMeta = true
func (l *Parser) WithFreeFloating() {
l.Lexer.WithFreeFloating = true
}
// Parse the php7 Parser entrypoint
@@ -106,7 +106,7 @@ func isDollar(r rune) bool {
}
func (l *Parser) MoveFreeFloating(src node.Node, dst node.Node) {
if l.Lexer.WithMeta == false {
if l.Lexer.WithFreeFloating == false {
return
}
@@ -119,7 +119,7 @@ func (l *Parser) MoveFreeFloating(src node.Node, dst node.Node) {
}
func (l *Parser) setFreeFloating(dst node.Node, p freefloating.Position, strings []freefloating.String) {
if l.Lexer.WithMeta == false {
if l.Lexer.WithFreeFloating == false {
return
}
@@ -136,7 +136,7 @@ func (l *Parser) setFreeFloating(dst node.Node, p freefloating.Position, strings
}
func (l *Parser) GetFreeFloatingToken(t *scanner.Token) []freefloating.String {
if l.Lexer.WithMeta == false {
if l.Lexer.WithFreeFloating == false {
return []freefloating.String{}
}
@@ -144,7 +144,7 @@ func (l *Parser) GetFreeFloatingToken(t *scanner.Token) []freefloating.String {
}
func (l *Parser) addDollarToken(v node.Node) {
if l.Lexer.WithMeta == false {
if l.Lexer.WithFreeFloating == false {
return
}
@@ -163,7 +163,7 @@ func (l *Parser) addDollarToken(v node.Node) {
}
func (l *Parser) splitSemiColonAndPhpCloseTag(htmlNode node.Node, prevNode node.Node) {
if l.Lexer.WithMeta == false {
if l.Lexer.WithFreeFloating == false {
return
}