extern char *ShellCmd[], *SedCmd[], *PickFileCmd[], *PickTagCmd[], *OpenCmd[];
extern int CLR_NormalText, CLR_GutterText, CLR_SelectedText, CLR_TagsBkg,
CLR_EditBkg, CLR_HorBorder, CLR_VerBorder, CLR_Ruler, CLR_ScrollBkg,
- CLR_ThumbBkg, CLR_Cursor;
+ CLR_ThumbBkg, CLR_Cursor, CLR_Comment;
/* OS-Specific Config
******************************************************************************/
int CLR_NormalText = COLOR_PAIR(0,4);
int CLR_GutterText = COLOR_PAIR(0,3);
int CLR_SelectedText = COLOR_PAIR(4,0);
-int CLR_TagsBkg = 1; // Background color for the tags region
-int CLR_EditBkg = 0; // Background color for the edit region
-int CLR_ScrollBkg = 3; // Background color for the scroll region
-int CLR_ThumbBkg = 0; // Background color of the scroll thumb
-int CLR_HorBorder = 2; // Horizontal border color
-int CLR_VerBorder = 2; // Vertical border color
-int CLR_Ruler = 1; // Ruler color
-int CLR_Cursor = 7; // Cursor color
+int CLR_TagsBkg = 1; // Background color for the tags region
+int CLR_EditBkg = 0; // Background color for the edit region
+int CLR_ScrollBkg = 3; // Background color for the scroll region
+int CLR_ThumbBkg = 0; // Background color of the scroll thumb
+int CLR_HorBorder = 2; // Horizontal border color
+int CLR_VerBorder = 2; // Vertical border color
+int CLR_Ruler = 1; // Ruler color
+int CLR_Cursor = 7; // Cursor color
+int CLR_Comment = 2; // Comment color
#undef INCLUDE_DEFS
#endif
for (; off < end && !buf_iseol(buf, off); off++);
else if (matches(buf, &off, syntax->comments.multi_beg))
for (; off < end && !matches(buf, &off, syntax->comments.multi_end); off++);
- if (start != off) {
- spans = mkspan(start, ++off, CLR_Cursor, spans);
- }
+ if (start != off)
+ spans = mkspan(start, ++off, CLR_Comment, spans);
if (!firstspan && spans)
firstspan = spans;
}
if (curr) {
size_t off = row->off, col = 0;
while (col < row->len) {
- if (curr->beg <= off && off < curr->end) {
+ if (curr->beg <= off && off < curr->end && !(row->cols[col].attr & 0xFF00)) {
uint32_t attr = row->cols[col].attr;
- row->cols[col].attr = (attr & 0xF0) | curr->color;
+ row->cols[col].attr = (row->cols[col].attr & 0xFF00) | curr->color;
}
off++, col++;
while (col < row->len && row->cols[col].rune == '\0')