Skip to content

Commit

Permalink
this highlighting for typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
jdinhify committed Feb 28, 2019
1 parent 03dea7e commit d9b8659
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 0 deletions.
26 changes: 26 additions & 0 deletions code-examples/.ts
Original file line number Diff line number Diff line change
@@ -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");
9 changes: 9 additions & 0 deletions themes/gruvbox-dark-hard.json
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,15 @@
"foreground": "#fe8019"
}
},
// typescript ---------------------------------------
{
"scope": [
"source.ts variable.language"
],
"settings": {
"foreground": "#fe8019"
}
},
// golang --------------------------------------------
{
"scope": [
Expand Down
9 changes: 9 additions & 0 deletions themes/gruvbox-dark-medium.json
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,15 @@
"foreground": "#fe8019"
}
},
// typescript ---------------------------------------
{
"scope": [
"source.ts variable.language"
],
"settings": {
"foreground": "#fe8019"
}
},
// golang --------------------------------------------
{
"scope": [
Expand Down
9 changes: 9 additions & 0 deletions themes/gruvbox-dark-soft.json
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,15 @@
"foreground": "#fe8019"
}
},
// typescript ---------------------------------------
{
"scope": [
"source.ts variable.language"
],
"settings": {
"foreground": "#fe8019"
}
},
// golang --------------------------------------------
{
"scope": [
Expand Down
9 changes: 9 additions & 0 deletions themes/gruvbox-light-hard.json
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,15 @@
"foreground": "#af3a03"
}
},
// typescript ---------------------------------------
{
"scope": [
"source.ts variable.language"
],
"settings": {
"foreground": "#af3a03"
}
},
// golang --------------------------------------------
{
"scope": [
Expand Down
9 changes: 9 additions & 0 deletions themes/gruvbox-light-medium.json
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,15 @@
"foreground": "#af3a03"
}
},
// typescript ---------------------------------------
{
"scope": [
"source.ts variable.language"
],
"settings": {
"foreground": "#af3a03"
}
},
// golang --------------------------------------------
{
"scope": [
Expand Down
9 changes: 9 additions & 0 deletions themes/gruvbox-light-soft.json
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,15 @@
"foreground": "#af3a03"
}
},
// typescript ---------------------------------------
{
"scope": [
"source.ts variable.language"
],
"settings": {
"foreground": "#af3a03"
}
},
// golang --------------------------------------------
{
"scope": [
Expand Down

0 comments on commit d9b8659

Please sign in to comment.