From d9b865935787489b94da0eca9b52747bb20d175d Mon Sep 17 00:00:00 2001 From: jdinhify Date: Fri, 1 Mar 2019 09:22:47 +1100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=20`this`=20highlighting=20for=20ty?= =?UTF-8?q?pescript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code-examples/.ts | 26 ++++++++++++++++++++++++++ themes/gruvbox-dark-hard.json | 9 +++++++++ themes/gruvbox-dark-medium.json | 9 +++++++++ themes/gruvbox-dark-soft.json | 9 +++++++++ themes/gruvbox-light-hard.json | 9 +++++++++ themes/gruvbox-light-medium.json | 9 +++++++++ themes/gruvbox-light-soft.json | 9 +++++++++ 7 files changed, 80 insertions(+) create mode 100644 code-examples/.ts diff --git a/code-examples/.ts b/code-examples/.ts new file mode 100644 index 0000000..2a5ee98 --- /dev/null +++ b/code-examples/.ts @@ -0,0 +1,26 @@ +interface SearchFunc { + (source: string, subString: string): boolean; +} + +var mySearch: SearchFunc; +mySearch = function(source: string, subString: string) { + var result = source.search(subString); + if (result == -1) { + return false; + } + else { + return true; + } +} + +class Greeter { + greeting: string; + constructor(message: string) { + this.greeting = message; + } + greet() { + return "Hello, " + this.greeting; + } +} + +var greeter = new Greeter("world"); \ No newline at end of file diff --git a/themes/gruvbox-dark-hard.json b/themes/gruvbox-dark-hard.json index 405880c..3a3db97 100644 --- a/themes/gruvbox-dark-hard.json +++ b/themes/gruvbox-dark-hard.json @@ -761,6 +761,15 @@ "foreground": "#fe8019" } }, + // typescript --------------------------------------- + { + "scope": [ + "source.ts variable.language" + ], + "settings": { + "foreground": "#fe8019" + } + }, // golang -------------------------------------------- { "scope": [ diff --git a/themes/gruvbox-dark-medium.json b/themes/gruvbox-dark-medium.json index 6f9c97e..7819290 100644 --- a/themes/gruvbox-dark-medium.json +++ b/themes/gruvbox-dark-medium.json @@ -761,6 +761,15 @@ "foreground": "#fe8019" } }, + // typescript --------------------------------------- + { + "scope": [ + "source.ts variable.language" + ], + "settings": { + "foreground": "#fe8019" + } + }, // golang -------------------------------------------- { "scope": [ diff --git a/themes/gruvbox-dark-soft.json b/themes/gruvbox-dark-soft.json index 0ffb607..4392915 100644 --- a/themes/gruvbox-dark-soft.json +++ b/themes/gruvbox-dark-soft.json @@ -761,6 +761,15 @@ "foreground": "#fe8019" } }, + // typescript --------------------------------------- + { + "scope": [ + "source.ts variable.language" + ], + "settings": { + "foreground": "#fe8019" + } + }, // golang -------------------------------------------- { "scope": [ diff --git a/themes/gruvbox-light-hard.json b/themes/gruvbox-light-hard.json index cecbea4..f5347ea 100644 --- a/themes/gruvbox-light-hard.json +++ b/themes/gruvbox-light-hard.json @@ -760,6 +760,15 @@ "foreground": "#af3a03" } }, + // typescript --------------------------------------- + { + "scope": [ + "source.ts variable.language" + ], + "settings": { + "foreground": "#af3a03" + } + }, // golang -------------------------------------------- { "scope": [ diff --git a/themes/gruvbox-light-medium.json b/themes/gruvbox-light-medium.json index b869efa..6e4923f 100644 --- a/themes/gruvbox-light-medium.json +++ b/themes/gruvbox-light-medium.json @@ -760,6 +760,15 @@ "foreground": "#af3a03" } }, + // typescript --------------------------------------- + { + "scope": [ + "source.ts variable.language" + ], + "settings": { + "foreground": "#af3a03" + } + }, // golang -------------------------------------------- { "scope": [ diff --git a/themes/gruvbox-light-soft.json b/themes/gruvbox-light-soft.json index 8904b6c..9200098 100644 --- a/themes/gruvbox-light-soft.json +++ b/themes/gruvbox-light-soft.json @@ -760,6 +760,15 @@ "foreground": "#af3a03" } }, + // typescript --------------------------------------- + { + "scope": [ + "source.ts variable.language" + ], + "settings": { + "foreground": "#af3a03" + } + }, // golang -------------------------------------------- { "scope": [