From e912ef3cfefa8c46e03505850278ae19c0db42db Mon Sep 17 00:00:00 2001 From: Ivan Sysoev Date: Mon, 28 Oct 2019 08:19:46 +0300 Subject: [PATCH] Add another one highlighter layer - "group" --- lib/narrow-editor.js | 3 +++ styles/narrow.less | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/narrow-editor.js b/lib/narrow-editor.js index c479b24b..dad014c0 100644 --- a/lib/narrow-editor.js +++ b/lib/narrow-editor.js @@ -83,6 +83,7 @@ class NarrowEditor { includeFilter: 'narrow-syntax--include-filter', fileHeader: 'narrow-syntax--header-file', projectHeader: 'narrow-syntax--header-project', + groupHeader: 'narrow-syntax--header-group', truncationIndicator: 'narrow-syntax--truncation-indicator' }) } @@ -435,6 +436,8 @@ class NarrowEditor { layerName = 'fileHeader' } else if (item.headerType === 'project') { layerName = 'projectHeader' + } else if (item.headerType === 'group') { + layerName = 'groupHeader' } markRange(layerName, [[row, 0], [row, Infinity]]) continue diff --git a/styles/narrow.less b/styles/narrow.less index b6da4f42..37c68a7e 100644 --- a/styles/narrow.less +++ b/styles/narrow.less @@ -89,7 +89,9 @@ atom-text-editor { .narrow-syntax--header-file { color: @syntax-color-variable; } - + .narrow-syntax--header-group { + color: @syntax-color-class; + } .line.narrow-cursor-line-flash-short { .flash(narrow-editor-cursor-line-flash-short, 0.5s); }