File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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 _ => & [ ] ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments