Skip to content

Commit 126550d

Browse files
committed
feat: v0.2.1 - new comment system, block comments, CI release
- Comment syntax: // → -- (line), --! (note), --!! (critical), --[ ]-- (block) - Auto-close --[ with ]-- - Block comment toggle via Ctrl+Shift+A - Updated grammar with v0.3 keywords, operators, and scopes - Fixed minimap section header rendering - GitHub Actions workflow: builds .vsix and creates release on push
1 parent 5da8e07 commit 126550d

6 files changed

Lines changed: 206 additions & 145 deletions

File tree

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build & Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
17+
- name: Install vsce
18+
run: npm install -g @vscode/vsce
19+
20+
- name: Get version
21+
id: version
22+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
23+
24+
- name: Package extension
25+
run: vsce package
26+
27+
- name: Create GitHub Release
28+
uses: softprops/action-gh-release@v2
29+
with:
30+
tag_name: v${{ steps.version.outputs.version }}
31+
name: v${{ steps.version.outputs.version }}
32+
files: "*.vsix"
33+
make_latest: true
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.vsix
2+
*.bak
3+
*.bak2
4+
node_modules/

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Quale is a domain-specific language for evolving neural networks using NEAT (Neu
77
## Features
88

99
- Syntax highlighting for all `.quale` constructs
10-
- Three-tier comment system (`--`, `--!`, `--!!`)
10+
- Semantic comment system (`--`, `--!`, `--!!`, `--[ ]--`)
1111
- Code snippets for rapid scaffolding
1212
- Auto-closing brackets and string pairs
1313
- Code folding on brace blocks
@@ -21,13 +21,20 @@ Quale uses a semantic comment system:
2121
-- Regular comment (discarded by parser)
2222
--! NOTE: this needs calibration (note - preserved in AST)
2323
--!! FIXME: hardcoded value (critical - blocks --strict mode)
24+
25+
--[
26+
Block comments span multiple lines.
27+
Useful for temporarily disabling sections
28+
or writing longer explanations.
29+
]--
2430
```
2531

2632
| Syntax | Purpose | Visibility |
2733
|--------|---------|------------|
2834
| `--` | Author notes, scratchpad | Parser discards |
2935
| `--!` | Notes, TODOs | Shown in `quale check` |
3036
| `--!!` | Critical issues | Fails `quale check --strict` |
37+
| `--[ ... ]--` | Block comment | Parser discards |
3138

3239
## Snippets
3340

language-configuration.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"comments": {
3-
"lineComment": "--"
3+
"lineComment": "--",
4+
"blockComment": ["--[", "]--"]
45
},
56
"brackets": [
67
["{", "}"],
@@ -10,9 +11,9 @@
1011
"autoClosingPairs": [
1112
{ "open": "{", "close": "}" },
1213
{ "open": "(", "close": ")" },
14+
{ "open": "--[", "close": "]--" },
1315
{ "open": "[", "close": "]" },
14-
{ "open": "\"", "close": "\"" },
15-
{ "open": "/*", "close": " */" }
16+
{ "open": "\"", "close": "\"" }
1617
],
1718
"surroundingPairs": [
1819
{ "open": "{", "close": "}" },
@@ -25,9 +26,6 @@
2526
"decreaseIndentPattern": "^\\s*\\}"
2627
},
2728
"folding": {
28-
"markers": {
29-
"start": "\\{",
30-
"end": "\\}"
31-
}
29+
"offSide": false
3230
}
3331
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "quale-lang",
33
"displayName": "Quale",
44
"description": "Syntax highlighting and snippets for the Quale neuroevolution language",
5-
"version": "0.2.0",
5+
"version": "0.2.1",
66
"publisher": "Provant",
77
"license": "MIT",
88
"repository": {

0 commit comments

Comments
 (0)