Skip to content

Commit 2e58856

Browse files
authored
Merge pull request #4 from SWAT-engineering/tokenization-testing
Tokenization testing
2 parents 9f3d91c + e92b79a commit 2e58856

File tree

14 files changed

+550
-25
lines changed

14 files changed

+550
-25
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
java-version: 11
2424
distribution: 'temurin'
2525
cache: 'maven'
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
cache: 'npm'
30+
cache-dependency-path: 'rascal-textmate-core/package-lock.json'
31+
- name: install-tokenizer
32+
working-directory: rascal-textmate-core
33+
run: npm install vscode-tmgrammar-test
2634
- name: run-tests
2735
working-directory: rascal-textmate-core
2836
run: mvn test -B -Drascal.compile.skip -Drascal.tutor.skip

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,18 @@ TextMate grammars, this project applies partial conversion. Alternatively, a
1616
previous [project](https://github.com/TarVK/syntax-highlighter) by
1717
[@TarVK](https://github.com/TarVK) applies total conversion.
1818

19-
The [walkthrough](src/main/rascal/lang/textmate/conversiontests/Walkthrough.rsc)
19+
## Documentation
20+
21+
The [walkthrough](rascal-textmate-core/src/main/rascal/lang/textmate/conversiontests/Walkthrough.rsc)
2022
explains the main ideas behind the conversion algorithm in this project.
23+
24+
## Tests
25+
26+
To test tokenization (as part of the conversion
27+
[tests](rascal-textmate-core/src/main/rascal/lang/textmate/conversiontests)),
28+
the [`vscode-tmgrammar-test`](https://github.com/PanAeon/vscode-tmgrammar-test)
29+
tool is used. Install it locally in directory `rascal-textmate-core` as follows:
30+
31+
```
32+
npm install vscode-tmgrammar-test
33+
```

rascal-textmate-core/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
target
1+
target
2+
node_modules

0 commit comments

Comments
 (0)