From 26a522c12bf97f926789103b0e5df95a7b2df45a Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Sat, 17 Sep 2016 20:25:45 +0200 Subject: [PATCH] [GHI-#12] Implement JSON language styles --- index.less | 1 + styles/languages/json.less | 44 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 styles/languages/json.less diff --git a/index.less b/index.less index 51ab196..d13099a 100644 --- a/index.less +++ b/index.less @@ -38,5 +38,6 @@ LESSCSS @import "styles/languages/go"; @import "styles/languages/java"; @import "styles/languages/javascript"; +@import "styles/languages/json"; @import "styles/languages/python"; @import "styles/languages/ruby"; diff --git a/styles/languages/json.less b/styles/languages/json.less new file mode 100644 index 0000000..c9cc876 --- /dev/null +++ b/styles/languages/json.less @@ -0,0 +1,44 @@ +/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +title Language JSON + +project nord-atom-syntax + +version + +repository https://github.com/arcticicestudio/nord-atom-syntax + +author Arctic Ice Studio + +email development@arcticicestudio.com + +copyright Copyright (C) 2016 + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +[Language Packages] + > language-json (https://atom.io/packages/language-json) + +[References] +JSON + (http://www.json.org) +*/ +.source.json { + .meta.structure.dictionary.json { + & > .string.quoted.json { + color: @syntax-color-attribute; + + & > .punctuation.string { + color: @syntax-color-punctuation; + } + } + } + + .meta.structure.dictionary.json, + .meta.structure.array.json { + & > .constant.language.json { + color: @syntax-color-keyword; + } + + & > .value.json > .string.quoted.json { + color: @syntax-color-string; + } + + & > .value.json > .string.quoted.json > .punctuation { + color: @syntax-color-punctuation; + } + } +}