From 797e1418d440aed99f0e78629b6e18a1a5ec1ba1 Mon Sep 17 00:00:00 2001 From: Piotr Semenov Date: Sat, 20 Apr 2024 00:49:35 +0400 Subject: [PATCH] chore: update package manifest for vscode --- .github/workflows/pre-commit.yml | 4 ++-- language-configuration.json | 2 +- package.json | 40 +++++++++++++++++++++++--------- 3 files changed, 32 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 64c8ab1..1c4ed3e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -10,8 +10,8 @@ jobs: pre-commit: runs-on: macos-12 steps: - - name: Install pre-commit and yamllint - run: brew install pre-commit yamllint + - name: Install pre-commit, jsonlint, and yamllint + run: brew install pre-commit jsonlint yamllint - name: Checkout uses: actions/checkout@v3 diff --git a/language-configuration.json b/language-configuration.json index 6b619d0..7809c80 100644 --- a/language-configuration.json +++ b/language-configuration.json @@ -1,7 +1,7 @@ { "comments": { // symbol used for single line comment. Remove this entry if your language does not support line comments - "lineComment": "//", + "lineComment": "\\", // symbols used for start and end a block comment. Remove this entry if your language does not support block comments "blockComment": [ "/*", "*/" ] }, diff --git a/package.json b/package.json index e31b4f8..770c7c8 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,10 @@ "displayName": "PARI/GP Lang", "description": "Syntax highlighting for PARI/GP language", "version": "0.0.1", + "repository": { + "type": "git", + "url": "https://github.com/piotr-semenov/parigp-lang.git" + }, "engines": { "vscode": "^1.87.0" }, @@ -10,16 +14,30 @@ "Programming Languages" ], "contributes": { - "languages": [{ - "id": "parigp", - "aliases": ["PARI/GP", "parigp"], - "extensions": [".pari",".parigp",".gp"], - "configuration": "./language-configuration.json" - }], - "grammars": [{ - "language": "parigp", - "scopeName": "source.parigp", - "path": "./syntaxes/parigp.tmLanguage.json" - }] + "languages": [ + { + "id": "parigp", + "aliases": [ + "PARI/GP", + "parigp" + ], + "extensions": [ + ".pari", + ".parigp", + ".gp" + ], + "configuration": "./language-configuration.json" + } + ], + "grammars": [ + { + "language": "parigp", + "scopeName": "source.parigp", + "path": "./syntaxes/parigp.tmLanguage.json" + } + ] + }, + "dependencies": { + "@vscode/vsce": "^2.25.0" } }