Skip to content

Commit 3ef6ff2

Browse files
committed
add workflow
1 parent d6a8784 commit 3ef6ff2

File tree

3 files changed

+46
-3
lines changed

3 files changed

+46
-3
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Linux"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: false
13+
14+
jobs:
15+
build-and-test:
16+
name: x64-linux
17+
runs-on: ubuntu-24.04
18+
19+
steps:
20+
- name: Checkout Code
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v5
25+
26+
- name: Install vscode packages
27+
run: npm install --global yo generator-code vsce
28+
29+
- name: Package vscode-extension
30+
run: vsce package
31+
32+
- name: Upload artifact
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: latest-build
36+
path: *.vsix
37+
38+
- name: Upload release
39+
uses: softprops/action-gh-release@v2
40+
if: github.ref_type == 'tag'
41+
with:
42+
files: *.vsix
43+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-hikolang",
33
"displayName": "vscode-hikolang",
44
"description": "Support for the hikolang language.",
5-
"version": "0.1.0",
5+
"version": "0.1.1",
66
"engines": {
77
"vscode": "^1.105.0"
88
},

syntaxes/hikolang.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"patterns": [
8282
{
8383
"name": "keyword.control.hikolang",
84-
"match": "\\b(if|else|for|while|switch|case|default|break|continue|return|module|import|syntax|let|var|fn|class|union|enum)\\b"
84+
"match": "\\b(if|else|for|while|switch|case|default|break|continue|return|module|import|syntax|fn|class|union|enum|throw|trap|try)\\b"
8585
}
8686
]
8787
},
@@ -105,7 +105,7 @@
105105
"patterns": [
106106
{
107107
"name": "storage.type.hikolang",
108-
"match": "\\b(int|real|string|void)\\b"
108+
"match": "\\b(var|let)\\b"
109109
}
110110
]
111111
},

0 commit comments

Comments
 (0)