Skip to content

Commit d436c82

Browse files
committed
add cs extension to metasyntaxparser
1 parent 2f5763e commit d436c82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tmc-langs-framework/src/meta_syntax.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ impl<R: Read> MetaSyntaxParser<BufReader<R>> {
116116
let reader = BufReader::new(target);
117117
// assigns each supported file extension with the proper comment syntax
118118
let meta_syntaxes: &[MetaSyntax] = match target_extension {
119-
"java" | "c" | "cpp" | "h" | "hpp" | "js" | "css" | "rs" | "qml" => &*META_SYNTAXES_C,
119+
"java" | "c" | "cpp" | "h" | "hpp" | "js" | "css" | "rs" | "qml" | "cs" => {
120+
&*META_SYNTAXES_C
121+
}
120122
"xml" | "http" | "html" | "qrc" => &*META_SYNTAXES_HTML,
121123
"properties" | "py" | "R" | "pro" => &*META_SYNTAXES_PY,
122124
_ => &[],

0 commit comments

Comments
 (0)