Skip to content

Commit

Permalink
before merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYinMD committed Dec 16, 2018
1 parent 727bc1c commit a8035fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions scripts/visualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ const officialThemeName = {

if (!themeName || !officialThemeName) {
console.error(`Please provide the name of the theme you're tweaking, options are:
"npm run visualize sepia" for the theme "Sepia",
"npm run visualize cuttlefish" for the theme "Sepia from Cuttlefish"`);
For the theme "Sepia":
"npm run visualize sepia"
For the theme "Sepia from Cuttlefish":
"npm run visualize cuttlefish"`);
process.exit();
}

Expand All @@ -34,3 +36,5 @@ userSettings['editor.tokenColorCustomizations'][`[${officialThemeName}]`] = user

userSettings['editor.tokenColorCustomizations'][`[${officialThemeName}]`].textMateRules = rules;
fs.writeFileSync(pathToUserSettings, json.stringify(userSettings, null, 4));

console.log('Success! The changes is already effective in your VSCode.');
2 changes: 1 addition & 1 deletion syntax-highlighting-rules/basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
"punctuation.definition.variable.makefile"
],
"settings": {
"foreground": "regex"
"foreground": "operator"
}
},
{
Expand Down

0 comments on commit a8035fa

Please sign in to comment.