From 57d73db258168de20a5cc11eb351d4683e77b985 Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 7 May 2017 00:15:53 -0700 Subject: [PATCH 1/4] Imported Elixir syntax highlighting. --- index.less | 1 + package.json | 2 +- styles/syntax/elixir.less | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 styles/syntax/elixir.less diff --git a/index.less b/index.less index 64d3c5b..723a2c5 100644 --- a/index.less +++ b/index.less @@ -10,6 +10,7 @@ @import "styles/syntax/cpp.less"; @import "styles/syntax/cs.less"; @import "styles/syntax/css.less"; +@import "styles/syntax/elixir.less"; @import "styles/syntax/gfm.less"; @import "styles/syntax/go.less"; @import "styles/syntax/ini.less"; diff --git a/package.json b/package.json index 22d4c04..ba14ce9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "one-dark-syntax", "theme": "syntax", - "version": "1.7.1", + "version": "1.8.0", "description": "A dark syntax theme", "keywords": [ "dark", diff --git a/styles/syntax/elixir.less b/styles/syntax/elixir.less new file mode 100644 index 0000000..7d13fee --- /dev/null +++ b/styles/syntax/elixir.less @@ -0,0 +1,23 @@ +.syntax--source.syntax--elixir { + .syntax--keyword.operator { + color: @hue-2; + } + .syntax--support.function.variable.quoted { + color: @hue-4; + } + .syntax--keyword.other.special-method { + color: @hue-5; + } + .syntax--punctuation.section.regexp, + .syntax--string.regexp { + color: @hue-5-2; + } + .syntax--punctuation.separator.object, + .syntax--entity.name.type.module { + color: @hue-6; + } + .syntax--constant.language, + .syntax--constant.numeric { + color: @hue-6-2; + } +} From e0e740a23752d6951a843cc32c68ca177b7150d0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 7 May 2017 11:31:29 -0700 Subject: [PATCH 2/4] Made colons before and after atoms cyan to match the atom body. --- package.json | 2 +- styles/syntax/elixir.less | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ba14ce9..0301e95 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "one-dark-syntax", "theme": "syntax", - "version": "1.8.0", + "version": "1.8.1", "description": "A dark syntax theme", "keywords": [ "dark", diff --git a/styles/syntax/elixir.less b/styles/syntax/elixir.less index 7d13fee..8531bb9 100644 --- a/styles/syntax/elixir.less +++ b/styles/syntax/elixir.less @@ -1,4 +1,7 @@ .syntax--source.syntax--elixir { + .syntax--punctuation.definition.constant { + color: @hue-1; + } .syntax--keyword.operator { color: @hue-2; } From 57ac2aa02379f6b151077a2cffea473a9008039d Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 1 Jul 2017 12:24:37 -0700 Subject: [PATCH 3/4] Fix minor color issues. Add --syntax prefix. --- package.json | 2 +- styles/syntax/elixir.less | 36 +++++++++++++++++++++++++----------- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 0301e95..22d4c04 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "one-dark-syntax", "theme": "syntax", - "version": "1.8.1", + "version": "1.7.1", "description": "A dark syntax theme", "keywords": [ "dark", diff --git a/styles/syntax/elixir.less b/styles/syntax/elixir.less index 8531bb9..279539e 100644 --- a/styles/syntax/elixir.less +++ b/styles/syntax/elixir.less @@ -1,26 +1,40 @@ .syntax--source.syntax--elixir { - .syntax--punctuation.definition.constant { - color: @hue-1; + .syntax--source.syntax--embedded.syntax--source { + color: @mono-1; } - .syntax--keyword.operator { + .syntax--constant.syntax--language, + .syntax--constant.syntax--numeric, + .syntax--constant.syntax--definition { color: @hue-2; } - .syntax--support.function.variable.quoted { + .syntax--variable.syntax--definition, + .syntax--variable.syntax--anonymous{ + color: @hue-3; + } + .syntax--quoted{ color: @hue-4; } - .syntax--keyword.other.special-method { + .syntax--keyword.syntax--special-method, + .syntax--embedded.syntax--section, + .syntax--embedded.syntax--source.syntax--empty, { color: @hue-5; } - .syntax--punctuation.section.regexp, - .syntax--string.regexp { + .syntax--readwrite.syntax--module { + .syntax--punctuation { + color: @hue-5; + } + } + .syntax--regexp.syntax--section, + .syntax--regexp.syntax--string { color: @hue-5-2; } - .syntax--punctuation.separator.object, - .syntax--entity.name.type.module { + .syntax--separator, + .syntax--keyword.syntax--operator { color: @hue-6; } - .syntax--constant.language, - .syntax--constant.numeric { + .syntax--array, + .syntax--scope, + .syntax--variable.syntax--constant { color: @hue-6-2; } } From df4e2373178d1548cf54e994dc40533ec08b6f17 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 1 Jul 2017 23:00:51 -0700 Subject: [PATCH 4/4] Better color choice for structures --- styles/syntax/elixir.less | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/styles/syntax/elixir.less b/styles/syntax/elixir.less index 279539e..ca125c8 100644 --- a/styles/syntax/elixir.less +++ b/styles/syntax/elixir.less @@ -32,9 +32,12 @@ .syntax--keyword.syntax--operator { color: @hue-6; } - .syntax--array, - .syntax--scope, .syntax--variable.syntax--constant { color: @hue-6-2; } + .syntax--array, + .syntax--scope, + .syntax--section { + color: @mono-2; + } }