summaryrefslogtreecommitdiff
path: root/androidmk/parser/parser.go
diff options
context:
space:
mode:
author Min Yun <min.yun@lge.com> 2024-09-03 20:36:47 +0900
committer Min Yun <min.yun@lge.com> 2024-09-03 20:36:47 +0900
commite9cc403553a2886a608a59c24f2ee7aab12946fd (patch)
tree63b097651fdd6efce77779c3842f46fee27a9c51 /androidmk/parser/parser.go
parentcdd70d268a25626651ace46e56a327e366697fdb (diff)
Fix End() of Rule
If a directive appears in the middle of a Rule, the Rule does not reflect its length. This must be reflected to obtain the correct End() position of the Rule. Change-Id: I67a78f95487829c639b0c1414ac4cc096faa6363
Diffstat (limited to 'androidmk/parser/parser.go')
-rw-r--r--androidmk/parser/parser.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/androidmk/parser/parser.go b/androidmk/parser/parser.go
index 8a20bb052..f2477db3a 100644
--- a/androidmk/parser/parser.go
+++ b/androidmk/parser/parser.go
@@ -448,6 +448,7 @@ loop:
Prerequisites: prerequisites,
Recipe: recipe,
RecipePos: recipePos,
+ RecipeEndPos: p.pos(),
})
}
}