Skip to content

Commit 6c7b988

Browse files
authored
[clang-format] Add mjs to default_extensions in git-clang-format (#117730)
1 parent 3618c99 commit 6c7b988

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/tools/clang-format/git-clang-format

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,13 @@ def main():
9494
# Other languages that clang-format supports
9595
'proto', 'protodevel', # Protocol Buffers
9696
'java', # Java
97-
'js', # JavaScript
97+
'mjs', 'js', # JavaScript
9898
'ts', # TypeScript
9999
'cs', # C Sharp
100100
'json', # Json
101-
'sv', 'svh', 'v', 'vh', # Verilog
101+
'sv', 'svh', 'v', 'vh', # Verilog
102+
'td', # TableGen
103+
'txtpb', 'textpb', 'pb.txt', 'textproto', 'asciipb', # TextProto
102104
])
103105

104106
p = argparse.ArgumentParser(

0 commit comments

Comments
 (0)