From 8e3c7bdfbc13ba12273dc41c1d75eae81668b8bb Mon Sep 17 00:00:00 2001 From: AlDanial Date: Sat, 25 May 2024 21:30:03 -0700 Subject: [PATCH] fix Mojo/Mojom tests broken by 61d4fc9d5, #831 +whitespace tweaks --- cloc | 7 +++---- tests/outputs/Mojo.mojom.yaml | 2 +- tests/outputs/hi.mojo.yaml | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cloc b/cloc index 0005386c..6295e860 100755 --- a/cloc +++ b/cloc @@ -8642,7 +8642,7 @@ sub set_constants { # {{{1 'mg' => 'Modula3' , 'mojom' => 'Mojom' , 'mojo' => 'Mojo' , - '🔥' => 'Mojo' , + '🔥' => 'Mojo' , 'meson.build' => 'Meson' , 'metal' => 'Metal' , 'mk' => 'make' , @@ -10093,8 +10093,8 @@ sub set_constants { # {{{1 'Modula3' => [ [ 'call_regexp_common' , 'Pascal' ], ], # Modula 3 comments are (* ... *) so applying the Pascal filter # which also treats { ... } as a comment is not really correct. - 'Mojom' => [ [ 'call_regexp_common' , 'C++' ], ], - 'Mojo' => [ + 'Mojom' => [ [ 'call_regexp_common' , 'C++' ], ], + 'Mojo' => [ [ 'remove_matches' , '/\*' ], [ 'remove_matches' , '\*/' ], [ 'remove_matches' , '^\s*#' ], @@ -10102,7 +10102,6 @@ sub set_constants { # {{{1 [ 'call_regexp_common' , 'C' ], [ 'remove_inline' , '#.*$' ], ], - 'Nemerle' => [ [ 'rm_comments_in_strings', '"', '/*', '*/' ], [ 'rm_comments_in_strings', '"', '//', '' ], diff --git a/tests/outputs/Mojo.mojom.yaml b/tests/outputs/Mojo.mojom.yaml index 3ae16766..3ca90640 100644 --- a/tests/outputs/Mojo.mojom.yaml +++ b/tests/outputs/Mojo.mojom.yaml @@ -9,7 +9,7 @@ header : files_per_second : 35.8975359676826 lines_per_second : 969.23347112743 report_file : ./tests/outputs/example_mojo.mojom.yaml -'Mojo' : +'Mojom' : nFiles: 1 blank: 6 comment: 4 diff --git a/tests/outputs/hi.mojo.yaml b/tests/outputs/hi.mojo.yaml index ceb44553..2fad78b3 100644 --- a/tests/outputs/hi.mojo.yaml +++ b/tests/outputs/hi.mojo.yaml @@ -17,5 +17,5 @@ Mojo : SUM: blank: 4 comment: 11 - code: 2 + code: 3 nFiles: 1