Skip to content

Commit

Permalink
Fix grammar path
Browse files Browse the repository at this point in the history
fwcd committed Apr 14, 2023
1 parent 625be24 commit ba02843
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -27,3 +27,4 @@ langServerInstall
debugAdapterInstall
grammarsDownload.zip
syntaxes
grammars
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -38,18 +38,18 @@
".kt",
".kts"
],
"configuration": "./resources/syntaxes/kotlin.configuration.json"
"configuration": "./resources/grammars/kotlin.configuration.json"
}
],
"grammars": [
{
"language": "kotlin",
"scopeName": "source.kotlin",
"path": "./resources/syntaxes/Kotlin.tmLanguage.json"
"path": "./resources/grammars/Kotlin.tmLanguage.json"
},
{
"scopeName": "markdown.kotlin.codeblock",
"path": "./resources/syntaxes/codeblock.json",
"path": "./resources/grammars/codeblock.json",
"injectTo": [
"text.html.markdown"
],
2 changes: 1 addition & 1 deletion scripts/downloadGrammar.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ const fs = require("fs");
const GRAMMAR_URL = "https://github.com/fwcd/kotlin-language-server/releases/latest/download/grammars.zip";
const RESOURCES_PATH = path.join(__dirname, "..", "resources");
const DOWNLOAD_PATH = path.join(RESOURCES_PATH, "grammarsDownload.zip");
const EXTRACT_PATH = path.join(RESOURCES_PATH, "syntaxes");
const EXTRACT_PATH = path.join(RESOURCES_PATH);

console.log("Downloading grammars...");
request.get(GRAMMAR_URL)

0 comments on commit ba02843

Please sign in to comment.