Skip to content

Commit 45f6ebd

Browse files
committed
fix: resolve duplicate case patterns in Language enum
- Remove .m from Mathematica and Octave cases, keep only Objective-C mapping - Remove .sig from SML case to avoid conflict with PGP mapping - Remove .v from SystemVerilog case to avoid conflict with Verilog mapping - This fixes compilation errors caused by duplicate case patterns in switch statement
1 parent d7f8616 commit 45f6ebd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Sources/CodeMirror/Language.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public enum Language: String, CaseIterable, Hashable, Identifiable {
301301
case .ls: "LiveScript"
302302
case .lua: "Lua"
303303
case .mrc: "mIRC"
304-
case .m, .nb, .wl, .wls: "Mathematica"
304+
case .nb, .wl, .wls: "Mathematica"
305305
case .mo: "Modelica"
306306
case .mps: "MUMPS"
307307
case .mbox: "Mbox"
@@ -310,7 +310,6 @@ public enum Language: String, CaseIterable, Hashable, Identifiable {
310310
case .m: "Objective-C"
311311
case .mm: "Objective-C++"
312312
case .ml, .mli, .mll, .mly: "OCaml"
313-
case .m: "Octave"
314313
case .oz: "Oz"
315314
case .p, .pas: "Pascal"
316315
case .pl, .pm: "Perl"
@@ -330,13 +329,13 @@ public enum Language: String, CaseIterable, Hashable, Identifiable {
330329
case .sh, .ksh, .bash: "Shell"
331330
case .siv, .sieve: "Sieve"
332331
case .st: "Smalltalk"
333-
case .sml, .sig, .fun, .smackspec: "SML"
332+
case .sml, .fun, .smackspec: "SML"
334333
case .rq, .sparql: "SPARQL"
335334
case .nut: "Squirrel"
336335
case .styl: "Stylus"
337336
case .swift: "Swift"
338337
case .text, .ltx, .tex: "LaTeX"
339-
case .v, .sv, .svh: "SystemVerilog"
338+
case .sv, .svh: "SystemVerilog"
340339
case .tcl: "Tcl"
341340
case .textile: "Textile"
342341
case .toml: "TOML"

0 commit comments

Comments
 (0)