update-grammar.js 722 B

12345678910111213141516171819
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. 'use strict';
  6. var updateGrammar = require('vscode-grammar-updater');
  7. function adaptLess(grammar) {
  8. grammar.name = 'Less';
  9. grammar.scopeName = 'source.css.less';
  10. }
  11. async function updateGrammars() {
  12. await updateGrammar.update('radium-v/Better-Less', 'Syntaxes/Better%20Less.tmLanguage', './syntaxes/less.tmLanguage.json', adaptLess, 'master');
  13. }
  14. updateGrammars();