|
|
|
|
@ -972,7 +972,7 @@ clang::Index Source::ClangViewParse::clang_index(0, 0);
|
|
|
|
|
|
|
|
|
|
Source::ClangViewParse::ClangViewParse(const boost::filesystem::path &file_path, const boost::filesystem::path& project_path, Glib::RefPtr<Gsv::Language> language): |
|
|
|
|
Source::View(file_path, language), project_path(project_path), parse_error(false) { |
|
|
|
|
DEBUG("start"); |
|
|
|
|
JDEBUG("start"); |
|
|
|
|
auto scheme = get_source_buffer()->get_style_scheme(); |
|
|
|
|
auto tag_table=get_buffer()->get_tag_table(); |
|
|
|
|
for (auto &item : Singleton::Config::source()->clang_types) { |
|
|
|
|
@ -991,7 +991,7 @@ Source::View(file_path, language), project_path(project_path), parse_error(false
|
|
|
|
|
// // if (style->property_line_background_set()) tag->property_line_background() = style->property_line_background();
|
|
|
|
|
// // if (style->property_underline_set()) tag->property_underline() = style->property_underline();
|
|
|
|
|
} else |
|
|
|
|
INFO("Style " + item.second + " not found in " + scheme->get_name()); |
|
|
|
|
JINFO("Style " + item.second + " not found in " + scheme->get_name()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -1039,7 +1039,7 @@ Source::View(file_path, language), project_path(project_path), parse_error(false
|
|
|
|
|
bracket_regex=std::regex(std::string("^(")+tab_char+"*).*\\{ *$"); |
|
|
|
|
no_bracket_statement_regex=std::regex(std::string("^(")+tab_char+"*)(if|for|else if|catch|while) *\\(.*[^;}] *$"); |
|
|
|
|
no_bracket_no_para_statement_regex=std::regex(std::string("^(")+tab_char+"*)(else|try|do) *$"); |
|
|
|
|
DEBUG("end"); |
|
|
|
|
JDEBUG("end"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Source::ClangViewParse::~ClangViewParse() { |
|
|
|
|
|