Skip to content

Commit

Permalink
Add support for TS+TSX files
Browse files Browse the repository at this point in the history
  • Loading branch information
AjobK authored Aug 27, 2024
1 parent 6c4dcc5 commit b19588e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unbeheader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@
'js': SupportedFileType(
re.compile(r'/\*(.|[\r\n])*?\*/|((^//|[\r\n]//).*)*'),
CommentSkeleton('//', '//')),
'ts': SupportedFileType(
re.compile(r'/\*(.|[\r\n])*?\*/|((^//|[\r\n]//).*)*'),
CommentSkeleton('//', '//')),
'jsx': SupportedFileType(
re.compile(r'/\*(.|[\r\n])*?\*/|((^//|[\r\n]//).*)*'),
CommentSkeleton('//', '//')),
'tsx': SupportedFileType(
re.compile(r'/\*(.|[\r\n])*?\*/|((^//|[\r\n]//).*)*'),
CommentSkeleton('//', '//')),
'css': SupportedFileType(
re.compile(r'/\*(.|[\r\n])*?\*/'),
CommentSkeleton('/*', ' *', ' */')),
Expand Down

0 comments on commit b19588e

Please sign in to comment.