summaryrefslogtreecommitdiff
path: root/androidmk/parser/parser.go
diff options
context:
space:
mode:
author Sasha Smundak <asmundak@google.com> 2020-11-19 02:20:40 -0800
committer Sasha Smundak <asmundak@google.com> 2020-11-19 11:52:20 -0800
commit7890211d588aa14b08a01df76d8f42897c05dfa6 (patch)
tree6b090bc29dc32f7793fc67ea1e9108b531f7167e /androidmk/parser/parser.go
parentb479459ac98aa59de2b877b1a3687d9ad2647ecb (diff)
Fix comments with continuation
Backgound: aog/919954 tried to handle ``` second line ``` but did it incorrectly. The parser works correctly (so this change reverts aog/919954), it returns multiline comment, but the serializer converting the internal representation to Blueprint was not emitting '//' on the lines after the first. Test: treehugger Bug: 127521510 Change-Id: I0257a8b3cc4ffcaa6bea44113ceba66bb99d7e43
Diffstat (limited to 'androidmk/parser/parser.go')
-rw-r--r--androidmk/parser/parser.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/androidmk/parser/parser.go b/androidmk/parser/parser.go
index e61241b2d..c14910a4f 100644
--- a/androidmk/parser/parser.go
+++ b/androidmk/parser/parser.go
@@ -497,12 +497,6 @@ loop:
switch p.tok {
case '\\':
p.parseEscape()
- if p.tok == '\n' {
- // Special case: '\' does not "escape" newline in comment (b/127521510)
- comment += "\\"
- p.accept(p.tok)
- break loop
- }
comment += "\\" + p.scanner.TokenText()
p.accept(p.tok)
case '\n':