Browse Source

Small default style cleanup. Added color for #include and #define.

merge-requests/365/head
eidheim 10 years ago
parent
commit
4a6d1aaae1
  1. 13
      src/files.h
  2. 1
      src/source.cc

13
src/files.h

@ -12,6 +12,7 @@ const std::string configjson =
" \"43\": \"def:type\",\n"
" \"46\": \"def:preprocessor\",\n"
" \"109\": \"def:constant\",\n"
" \"500\": \"c:included-file\",\n"
" \"702\": \"def:statement\",\n"
" \"705\": \"def:comment\"\n"
" },\n"
@ -128,29 +129,26 @@ const std::string juci_style =
" <!-- Palette -->\n"
" <color name=\"white\" value=\"#FFFFFF\"/>\n"
" <color name=\"black\" value=\"#000000\"/>\n"
" <color name=\"gray\" value=\"#888888\"/>\n"
" <color name=\"red\" value=\"#FF0000\"/>\n"
" <color name=\"green\" value=\"#008800\"/>\n"
" <color name=\"blue\" value=\"#0000FF\"/>\n"
" <color name=\"yellow\" value=\"#FFFF00\"/>\n"
" <color name=\"orange\" value=\"#FFA500\"/>\n"
" <color name=\"orange\" value=\"#FF8800\"/>\n"
"\n"
" <!-- Global Settings -->\n"
" <style name=\"current-line\" background=\"#eeeeec\"/>\n"
" <style name=\"current-line-number\" background=\"#eeeeec\"/>\n"
" <style name=\"draw-spaces\" foreground=\"#babdb6\"/>\n"
" <style name=\"background-pattern\" background=\"#f3f3f3\"/>\n"
"\n"
" <!-- Bracket Matching -->\n"
" <style name=\"bracket-match\" foreground=\"white\" background=\"#BEBEBE\" bold=\"true\"/>\n"
" <style name=\"bracket-mismatch\" foreground=\"white\" background=\"#FF0000\" bold=\"true\"/>\n"
"\n"
" <!-- Right Margin -->\n"
" <style name=\"right-margin\" foreground=\"#000000\" background=\"#000000\"/>\n"
"\n"
" <!-- Search Matching -->\n"
" <style name=\"search-match\" background=\"yellow\"/>\n"
"\n"
" <!-- Comments -->\n"
" <style name=\"def:comment\" foreground=\"blue\"/>\n"
" <style name=\"def:comment\" foreground=\"gray\"/>\n"
"\n"
" <!-- Constants -->\n"
" <style name=\"def:constant\" foreground=\"#CC0000\"/>\n"
@ -162,6 +160,7 @@ const std::string juci_style =
" <style name=\"def:type\" foreground=\"#0066FF\"/>\n"
"\n"
" <!-- Others -->\n"
" <style name=\"c:included-file\" foreground=\"green\"/>\n"
" <style name=\"def:preprocessor\" foreground=\"#990099\"/>\n"
" <style name=\"def:error\" foreground=\"red\"/>\n"
" <style name=\"def:warning\" foreground=\"orange\"/>\n"

1
src/source.cc

@ -634,6 +634,7 @@ void Source::ClangViewParse::update_syntax() {
try {
last_syntax_tags.emplace(Singleton::Config::source()->clang_types.at(type));
} catch (std::exception) {
cout << range.kind << ": " << range.offsets.first.line << ", " << range.offsets.first.index << endl;
continue;
}

Loading…
Cancel
Save