Skip to content

Commit ab949fa

Browse files
authored
Merge pull request #182 from rage/bugfix
Bugfix
2 parents 2f5763e + e2356be commit ab949fa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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
_ => &[],

tmc-langs/src/config/tmc_config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ impl TmcConfig {
101101
"Failed to deserialize config at {}, resetting",
102102
path.display()
103103
);
104+
drop(guard); // unlock file before recreating it
104105
Self::init_at(client_name, &path)?
105106
}
106107
}

0 commit comments

Comments
 (0)