From 0211cda2dc0e0b267d9de434e58ba2ddf93beb3c Mon Sep 17 00:00:00 2001 From: David Walter Date: Fri, 13 Jul 2018 21:36:04 +0200 Subject: [PATCH] syntax improvements --- base/urban.less | 24 ++++++++++-------------- index.less | 3 ++- lang/swift.less | 5 +++++ package.json | 2 +- 4 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 lang/swift.less diff --git a/base/urban.less b/base/urban.less index 742e0b6..656abeb 100755 --- a/base/urban.less +++ b/base/urban.less @@ -75,6 +75,7 @@ atom-text-editor .search-results .syntax--marker.current-result .region { .syntax--comment { color: @light-gray; + font-style: italic; } .syntax--keyword { @@ -83,7 +84,7 @@ atom-text-editor .search-results .syntax--marker.current-result .region { &.syntax--control { color: @light-magenta; - &.syntax--ternary { + &.syntax--ternary, &.syntax--include { color: @orange; } } @@ -117,13 +118,13 @@ atom-text-editor .search-results .syntax--marker.current-result .region { color: @orange; &.syntax--type { - color: @light-cyan; + color: @light-magenta; &.syntax--function.syntax--arrow { color: @orange; } - &.syntax--var, &.syntax--function { + &.syntax--var, &.syntax--function, &.syntax--class { color: @light-magenta; } } @@ -154,17 +155,7 @@ atom-text-editor .search-results .syntax--marker.current-result .region { } &.syntax--other { - &syntax--color { - color: @light-cyan; - } - - &.syntax--symbol { - color: @light-cyan; - } - - &.syntax--placeholder { - color: inherit; - } + color: @light-cyan; } } @@ -231,6 +222,10 @@ atom-text-editor .search-results .syntax--marker.current-result .region { .syntax--punctuation { color: @syntax-text-color; + &.syntax--directive { + color: @orange; + } + &.syntax--terminator { color: @light-gray; } @@ -238,6 +233,7 @@ atom-text-editor .search-results .syntax--marker.current-result .region { &.syntax--definition { &.syntax--comment { color: @light-gray; + font-style: italic; } &.syntax--string { diff --git a/index.less b/index.less index 58e5833..bbac556 100755 --- a/index.less +++ b/index.less @@ -4,4 +4,5 @@ @import "./lang/java.less"; @import "./lang/json.less"; @import "./lang/less.less"; -@import "./lang/php.less"; \ No newline at end of file +@import "./lang/php.less"; +@import "./lang/swift.less"; \ No newline at end of file diff --git a/lang/swift.less b/lang/swift.less new file mode 100644 index 0000000..66697ab --- /dev/null +++ b/lang/swift.less @@ -0,0 +1,5 @@ +.syntax--swift { + &.syntax--storage.syntax--type { + color: @light-magenta; + } +} \ No newline at end of file diff --git a/package.json b/package.json index 02d3e1b..ba847ba 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "urban-syntax", "theme": "syntax", - "version": "2.0.2", + "version": "2.0.3", "description": "Dark syntax theme inspired by Xcode themes", "keywords": [ "syntax",