Skip to content

Commit 91d1bf4

Browse files
committed
Add grammar regression checks and packaging cleanup
1 parent eb89f50 commit 91d1bf4

8 files changed

Lines changed: 4338 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.vsix
2+
node_modules/
23

34
# Internal development files
45
CLAUDE.md

.vscodeignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ IEA-15-240-RWT/**
22
IEA-15-240-RWT-UMaineSemi/**
33
CLAUDE.md
44
openfast_udl.xml
5+
scripts/**
6+
tests/**
57
*.ps1
68
*.log

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,35 @@ It is designed to make engineering input decks easier to read without trying to
5050

5151
## Development
5252

53-
1. Open this folder in Visual Studio Code.
54-
2. Run `Extensions: Show Running Extensions`.
55-
3. Press `F5` to launch an Extension Development Host.
56-
4. Open an OpenFAST or ROSCO input file in the new window and verify highlighting.
53+
1. Install dependencies with `npm install`.
54+
2. Run `npm run test:grammar` to check the TextMate grammar against representative sample lines.
55+
3. Open this folder in Visual Studio Code.
56+
4. Press `F5` to launch an Extension Development Host.
57+
5. Open an OpenFAST or ROSCO input file in the new window and verify highlighting.
58+
59+
## Tests
60+
61+
The project includes a minimal grammar regression script in `scripts/test-grammar.mjs`.
62+
63+
- Test cases live in `tests/grammar-cases.json`
64+
- Each case checks that a representative line tokenizes with the expected TextMate scope
65+
- Add a new case whenever you fix a highlighting bug or add support for a new OpenFAST-family pattern
66+
67+
Run the checks with:
68+
69+
```bash
70+
npm run test:grammar
71+
```
5772

5873
## Packaging
5974

6075
To package for sharing or publication:
6176

62-
1. Install `vsce`
63-
2. Run `vsce package`
77+
1. Install dependencies with `npm install`
78+
2. Run the grammar checks with `npm run test:grammar`
79+
3. Run `npm run package:vsix`
80+
81+
Generated `.vsix` files are local build artifacts and should not be committed.
6482

6583
## Notes
6684

media/icon.png

-1.27 MB
Loading

0 commit comments

Comments
 (0)