diff --git a/src/assets.rs b/src/assets.rs index 19650a27fd..bac0c430d2 100644 --- a/src/assets.rs +++ b/src/assets.rs @@ -450,6 +450,7 @@ mod tests { assert_eq!(test.syntax_for_file("test.sass"), "Sass"); assert_eq!(test.syntax_for_file("test.js"), "JavaScript (Babel)"); assert_eq!(test.syntax_for_file("test.fs"), "F#"); + assert_eq!(test.syntax_for_file("test.v"), "Verilog"); } #[test] diff --git a/tests/no_duplicate_extensions.rs b/tests/no_duplicate_extensions.rs index 7bfe431a00..b2be5e4e12 100644 --- a/tests/no_duplicate_extensions.rs +++ b/tests/no_duplicate_extensions.rs @@ -17,6 +17,9 @@ fn no_duplicate_extensions() { // The '.fs' extension appears in F# and GLSL. // We default to F#. "fs", + // SystemVerilog and Verilog both use .v files. + // We default to Verilog. + "v", ]; let assets = HighlightingAssets::from_binary();