Associate additional file extensions with known languages (#2847)

Going to do these in batches.  Here is the first one.

Release Notes:

- Associated additional file extensions with known languages
(([#633](https://github.com/zed-industries/community/issues/633)),
([#1822](https://github.com/zed-industries/community/issues/1822))).
    - C++: `cxx`, `hxx`, `inl`
    - JavaScript: `cjs`
    - Python: `mpy`
    - TypeScript: `cts`, `d.cts`, `d.mts`, `mts`
This commit is contained in:
Joseph T. Lyons
2023-08-15 16:46:42 -04:00
committed by GitHub
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name = "C++"
path_suffixes = ["cc", "cpp", "h", "hpp"]
path_suffixes = ["cc", "cpp", "h", "hpp", "cxx", "hxx", "inl"]
line_comment = "// "
autoclose_before = ";:.,=}])>"
brackets = [
@@ -1,5 +1,5 @@
name = "JavaScript"
path_suffixes = ["js", "jsx", "mjs"]
path_suffixes = ["js", "jsx", "mjs", "cjs"]
first_line_pattern = '^#!.*\bnode\b'
line_comment = "// "
autoclose_before = ";:.,=}])>"
+1 -1
View File
@@ -1,5 +1,5 @@
name = "Python"
path_suffixes = ["py", "pyi"]
path_suffixes = ["py", "pyi", "mpy"]
first_line_pattern = '^#!.*\bpython[0-9.]*\b'
line_comment = "# "
autoclose_before = ";:.,=}])>"
@@ -1,5 +1,5 @@
name = "TypeScript"
path_suffixes = ["ts"]
path_suffixes = ["ts", "cts", "d.cts", "d.mts", "mts"]
line_comment = "// "
autoclose_before = ";:.,=}])>"
brackets = [