Skip to content

Commit

Permalink
Merge pull request #3471 from jrvanwhy/jlink-headers
Browse files Browse the repository at this point in the history
Add license headers to the `.jlink` files.
  • Loading branch information
bradjc committed Jun 13, 2023
2 parents 341f41f + 6b6ba40 commit 591c3c4
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 2 deletions.
1 change: 0 additions & 1 deletion .lcignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@
# issue #3417)
*.ld
!/tools/license-checker/testdata/block_comments.ld
*.jlink
*.xml
!/tools/license-checker/testdata/block_comments.xml
4 changes: 4 additions & 0 deletions boards/nordic/nrf52840_dongle/jtag/gdbinit_pca10040.jlink
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Licensed under the Apache License, Version 2.0 or the MIT License.
# SPDX-License-Identifier: Apache-2.0 OR MIT
# Copyright Tock Contributors 2019.
# Copyright Google LLC 2019.
#
#
#
Expand Down
3 changes: 3 additions & 0 deletions boards/nordic/nrf52840dk/jtag/gdbinit_pca10040.jlink
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the Apache License, Version 2.0 or the MIT License.
# SPDX-License-Identifier: Apache-2.0 OR MIT
# Copyright Tock Contributors 2018.
#
#
#
Expand Down
4 changes: 4 additions & 0 deletions boards/nordic/nrf52dk/jtag/flash-full.jlink
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Licensed under the Apache License, Version 2.0 or the MIT License.
# SPDX-License-Identifier: Apache-2.0 OR MIT
# Copyright Tock Contributors 2017.

eoe 1
r
loadfile ../../../target/thumbv7em-none-eabi/release/nrf52dk-blink.hex
Expand Down
4 changes: 4 additions & 0 deletions boards/nordic/nrf52dk/jtag/flash-kernel.jlink
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Licensed under the Apache License, Version 2.0 or the MIT License.
# SPDX-License-Identifier: Apache-2.0 OR MIT
# Copyright Tock Contributors 2017.

eoe 1
r
loadfile ../../../target/thumbv7em-none-eabi/release/nrf52dk.hex
Expand Down
3 changes: 3 additions & 0 deletions boards/nordic/nrf52dk/jtag/gdbinit_pca10040.jlink
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Licensed under the Apache License, Version 2.0 or the MIT License.
# SPDX-License-Identifier: Apache-2.0 OR MIT
# Copyright Tock Contributors 2018.
#
#
#
Expand Down
2 changes: 1 addition & 1 deletion tools/license-checker/src/fallback_syntax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contexts:
push: has_no_comments

has_number_comments:
- match: "^# "
- match: "^#"
scope: punctuation.definition.comment.fallback
push: number_comment

Expand Down
1 change: 1 addition & 0 deletions tools/license-checker/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ mod tests {
Other,
Other,
Other,
Comment("Lines starting with a '#' without a space are comments too."),
];
let path = Path::new("testdata/number_signs.fallback");
assert_produces(Parser::new(&Cache::default(), path), EXPECTED);
Expand Down
1 change: 1 addition & 0 deletions tools/license-checker/testdata/number_signs.fallback
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
syntect should not recognize this file type. Instead, the license checker
// should use the fallback parser, which should identify that this file uses
/* number signs for its comments. */
#Lines starting with a '#' without a space are comments too.

0 comments on commit 591c3c4

Please sign in to comment.