Skip to content

Commit 33f2e0d

Browse files
committed
add syntax file pulling from grammar repo
1 parent 2fb2948 commit 33f2e0d

6 files changed

Lines changed: 129 additions & 121 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: 20
18+
- run: make syntax
1819
- run: npm ci
1920
- name: Publish to Open VSX Registry
2021
uses: HaaLeo/publish-vscode-extension@v1

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
- uses: actions/setup-node@v4
1111
with:
1212
node-version: 20
13+
- run: make syntax
1314
- run: npm install
1415
- run: npm run pretest
1516
- name: Test Publish Extension

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
setup:
1+
setup: syntax
22
rm -rf node_modules/
33
rm -rf out/
44
rm -f package-lock.json
55
npm install
66
pnpm compile
77

8+
syntax:
9+
rm -rf syntaxes
10+
mkdir -p syntaxes
11+
wget -O syntaxes/rascript.tmLanguage.json 'https://github.com/joshraphael/rascript-syntax/releases/download/v0.0.3/rascript.tmLanguage.json'
12+
813
check: style
914
npm run pretest
1015

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ C:\Users\joshraphael\rascript-language-server_v0.0.1_win-x64.exe
4343
|Title|Command|Parameters|Description|
4444
|-|-|-|-|
4545
|Setup|`make setup`|None|Clean env and download dependencies|
46+
|Syntax|`make syntax`|None|Download the syntax file|
4647
|Check Exetension|`make check`|None|Check the extensions for lint and format errors|
4748
|Apply Style|`make style`|None|Apply linting and formatting to extension code|
4849
|Run In Browser|`make browser`|None|Run the extension in the browser version of VSCode|

0 commit comments

Comments
 (0)