Skip to content

Commit

Permalink
fix Mojo/Mojom tests broken by 61d4fc9, #831
Browse files Browse the repository at this point in the history
+whitespace tweaks
  • Loading branch information
AlDanial committed May 26, 2024
1 parent 61d4fc9 commit 8e3c7bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions cloc
Original file line number Diff line number Diff line change
Expand Up @@ -8642,7 +8642,7 @@ sub set_constants { # {{{1
'mg' => 'Modula3' ,
'mojom' => 'Mojom' ,
'mojo' => 'Mojo' ,
'🔥' => 'Mojo' ,
'🔥' => 'Mojo' ,
'meson.build' => 'Meson' ,
'metal' => 'Metal' ,
'mk' => 'make' ,
Expand Down Expand Up @@ -10093,16 +10093,15 @@ 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*#' ],
[ 'docstring_to_C' ],
[ 'call_regexp_common' , 'C' ],
[ 'remove_inline' , '#.*$' ],
],

'Nemerle' => [
[ 'rm_comments_in_strings', '"', '/*', '*/' ],
[ 'rm_comments_in_strings', '"', '//', '' ],
Expand Down
2 changes: 1 addition & 1 deletion tests/outputs/Mojo.mojom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/outputs/hi.mojo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Mojo :
SUM:
blank: 4
comment: 11
code: 2
code: 3
nFiles: 1

0 comments on commit 8e3c7bd

Please sign in to comment.