summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/mkshparser.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/mkshparser.go')
-rw-r--r--pkgtools/pkglint/files/mkshparser.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/mkshparser.go b/pkgtools/pkglint/files/mkshparser.go
index 1fd0af412a5..25a11e8d96d 100644
--- a/pkgtools/pkglint/files/mkshparser.go
+++ b/pkgtools/pkglint/files/mkshparser.go
@@ -238,7 +238,7 @@ func (lex *ShellLexer) Lex(lval *shyySymType) (ttype int) {
lex.atCommandStart = false
case lex.atCommandStart && matches(token, `^[A-Za-z_]\w*=`):
ttype = tkASSIGNMENT_WORD
- p := NewShTokenizer(dummyLine, token, false) // Just for converting the string to a ShToken
+ p := NewShTokenizer(nil, token, false)
lval.Word = p.ShToken()
case hasPrefix(token, "#"):
// This doesn't work for multiline shell programs.
@@ -246,7 +246,7 @@ func (lex *ShellLexer) Lex(lval *shyySymType) (ttype int) {
return 0
default:
ttype = tkWORD
- p := NewShTokenizer(dummyLine, token, false) // Just for converting the string to a ShToken
+ p := NewShTokenizer(nil, token, false)
lval.Word = p.ShToken()
lex.atCommandStart = false