adding edge cases
diff --git a/tool/test/license_utils_test.dart b/tool/test/license_utils_test.dart
index 9b771ff..98b8fea 100644
--- a/tool/test/license_utils_test.dart
+++ b/tool/test/license_utils_test.dart
@@ -499,26 +499,33 @@
   final contents = '''---
 # sequence of license text strings that should be matched against at the top of a file and removed. <value>, which normally represents a date, will be stored.
 remove_licenses:
+  #0
   - |-
     // This is some <value> multiline license
     // text that should be removed from the file.
+  #1
   - |-
     /* This is other <value> multiline license
     text that should be removed from the file. */
+  #2
   - |-
     # This is more <value> multiline license
     # text that should be removed from the file.
+  #3
   - |-
     // This is some multiline license text to
     // remove that does not contain a stored value.
 # sequence of license text strings that should be added to the top of a file. <value> will be replaced.
-add_licenses: 
+add_licenses:
+  #0
   - |-
     // This is some <value> multiline license
     // text that should be added to the file.
+  #1
   - |-
     # This is other <value> multiline license
     # text that should be added to the file.
+  #2
   - |-
     // This is some multiline license text to
     // add that does not contain a stored value.
diff --git a/update_licenses.yaml b/update_licenses.yaml
index 01002ed..796a0d7 100644
--- a/update_licenses.yaml
+++ b/update_licenses.yaml
@@ -1,50 +1,70 @@
 ---
 remove_licenses:
+  #0
   - |-
     // Copyright <value> The Chromium Authors. All rights reserved.
     // Use of this source code is governed by a BSD-style license that can be
     // found in the LICENSE file.
+  #1
   - |-
     /**
     Copyright <value> The Chromium Authors. All rights reserved.
     Use of this source code is governed by a BSD-style license that can be
     found in the LICENSE file.
     **/
+  #2
   - |-
     # Copyright <value> The Chromium Authors. All rights reserved.
     # Use of this source code is governed by a BSD-style license that can be
     # found in the LICENSE file.
+  #3
   - |-
     <!--
     Copyright <value> The Chromium Authors. All rights reserved.
     Use of this source code is governed by a BSD-style license that can be
     found in the LICENSE file.
     -->
+  #4
   - |-
     REM Copyright <value> The Chromium Authors. All rights reserved.
     REM Use of this source code is governed by a BSD-style license that can be
     REM found in the LICENSE file.
-add_licenses: 
+  #5
+  - |-
+    // Copyright <value> The Chromium Authors. All rights reserved.
+    // Use of this source code is governed by a BSD-style license that can be
+    // found in the LICENSE file
+  #6
+  - |-
+  // Copyright 2022 The Chromium Authors. All rights reserved.
+  // Use of this source code is governed by a BSD-style license that can be found
+  // in the LICENSE file.
+add_licenses:
+  #0 
   - |-
     // Copyright <value> The Flutter Authors
     // Use of this source code is governed by a BSD-style license that can be
     // found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
+  #1
   - |-
     /**
     Copyright <value> The Flutter Authors
     Use of this source code is governed by a BSD-style license that can be
     found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
     **/
+  #2
   - |-
     # Copyright <value> The Flutter Authors
     # Use of this source code is governed by a BSD-style license that can be
     # found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
+  #3
   - |-
     <!--
     Copyright <value> The Flutter Authors
     Use of this source code is governed by a BSD-style license that can be
     found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
     -->
+  #4
   - |-
     REM Copyright <value> The Flutter Authors
     REM Use of this source code is governed by a BSD-style license that can be
@@ -81,6 +101,8 @@
       remove:
           - 0
           - 1
+          - 5
+          - 6
       add: 0
     gradle:
       remove: