diff --git a/src/files.h b/src/files.h index fa34cd7..0aa5e88 100644 --- a/src/files.h +++ b/src/files.h @@ -21,18 +21,6 @@ const std::string configjson = " \"703\": \"own\",\n" " \"705\": \"comment\"\n" " },\n" -" \"extensions\": [\n" -" \"c\",\n" -" \"cc\",\n" -" \"cpp\",\n" -" \"cxx\",\n" -" \"c++\",\n" -" \"h\",\n" -" \"hh\",\n" -" \"hpp\",\n" -" \"hxx\",\n" -" \"h++\"\n" -" ],\n" " \"visual\": {\n" " \"background\": \"white\",\n" " \"background_selected\": \"blue\",\n" @@ -169,20 +157,20 @@ const std::string snippetpy = " \"space\") \n" "snippets = {} \n" " \n" -"snippets[\"for\"] = \"\"\"\ \n" +"snippets[\"for\"] = \"\"\"\\\n" "for(int i=0; i \n" " \n" "int main(int argc, char *argv[]) { \n" diff --git a/src/notebook.cc b/src/notebook.cc index 3c60ccb..6270f42 100644 --- a/src/notebook.cc +++ b/src/notebook.cc @@ -2,7 +2,6 @@ #include "logging.h" #include "sourcefile.h" #include "singletons.h" -using namespace std; //TODO: remove namespace sigc { SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE diff --git a/src/sourcefile.cc b/src/sourcefile.cc index 0583f06..9f80b03 100644 --- a/src/sourcefile.cc +++ b/src/sourcefile.cc @@ -4,7 +4,7 @@ std::string juci::filesystem::open(std::string path) { std::string res; for (auto &line : lines(path)) { - res += line; + res += line+'\n'; } return res; }