Skip to content

Commit ea98c91

Browse files
author
test
committed
Add 77 extension mapping tests for new languages
Add automated extension-to-language mapping tests for all new grammars that have file extensions. Removes conflicting extensions: - .blade.php: compound extension, handled by userconfig system - .env*: filenames, not extensions (no auto-discovery for dotfiles) - .sv/.svh: already mapped to Verilog, SystemVerilog uses same grammar
1 parent b2b48f8 commit ea98c91

2 files changed

Lines changed: 494 additions & 3 deletions

File tree

src/discover/language.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,8 @@ static const ext_entry_t EXT_TABLE[] = {
543543
{".star", CBM_LANG_STARLARK},
544544

545545
/* SystemVerilog */
546-
{".sv", CBM_LANG_SYSTEMVERILOG},
547546

548547
/* SystemVerilog */
549-
{".svh", CBM_LANG_SYSTEMVERILOG},
550548

551549
/* Sway */
552550
{".sw", CBM_LANG_SWAY},
@@ -756,6 +754,7 @@ static const char *LANG_NAMES[CBM_LANG_COUNT] = {
756754
[CBM_LANG_PRISMA] = "Prisma",
757755
[CBM_LANG_HYPRLANG] = "Hyprlang",
758756
[CBM_LANG_DOTENV] = "DotEnv",
757+
[CBM_LANG_SYSTEMVERILOG] = "SystemVerilog",
759758
[CBM_LANG_DIFF] = "Diff",
760759
[CBM_LANG_WGSL] = "WGSL",
761760
[CBM_LANG_KDL] = "KDL",
@@ -773,7 +772,6 @@ static const char *LANG_NAMES[CBM_LANG_COUNT] = {
773772
[CBM_LANG_REQUIREMENTS] = "Requirements",
774773
[CBM_LANG_HLSL] = "HLSL",
775774
[CBM_LANG_VHDL] = "VHDL",
776-
[CBM_LANG_SYSTEMVERILOG] = "SystemVerilog",
777775
[CBM_LANG_DEVICETREE] = "DeviceTree",
778776
[CBM_LANG_LINKERSCRIPT] = "Linker Script",
779777
[CBM_LANG_GN] = "GN",

0 commit comments

Comments
 (0)