Skip to content

Commit b49f2aa

Browse files
committed
chore: Update readme
1 parent 6e53e0e commit b49f2aa

File tree

4 files changed

+288
-11
lines changed

4 files changed

+288
-11
lines changed

CHANGELOG.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
# Change Log
1+
# Changelog
22

3-
All notable changes to the "r" extension will be documented in this file.
3+
All notable changes to this project will be documented in this file.
44

5-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
5+
## [unreleased]
66

7-
## [Unreleased]
7+
### ⚙️ Miscellaneous Tasks
88

9-
- Initial release
9+
- Add R logo
10+
- Swtich to npm ci
11+
- Update readme
12+
13+
## [0.1.0] - 2025-05-13
14+
15+
### ⚙️ Miscellaneous Tasks
16+
17+
- Add github action script
18+
- Add publish action
19+
20+
<!-- generated by git-cliff -->

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
# R Syntax Highlight
22

3-
This Visual Studio Code extension provides syntax highlighting for the R programming language.
3+
This Visual Studio Code extension provides syntax highlighting for R and R Markdown extensions.
44

55
It brings more consistency with other VS Code language syntaxes (such as Python and C) and
66
Sublime Text [R syntax](https://github.com/sublimehq/Packages/tree/master/R).
7+
8+
It only contains syntax definitions to allow users to switch to alternative formatters and language servers such as [air](https://github.com/posit-dev/air) and [ark](https://github.com/posit-dev/ark).
9+
10+
## Installation
11+
12+
The releases are available in VSCode Marketplace or Open VSX Registry. Search for extension "R Syntax".
13+
14+
## Contribution
15+
16+
If you are interesting in contributing to the syntaxes, feel free to clone the repository and edit the `r.yaml` and `rmd.yaml` files under the `syntaxes` directroy.
17+
In order to build the json files, you will need to install node.js and run
18+
19+
```sh
20+
npm install
21+
npm run build
22+
# or the following if you want to build the json files in watch mode
23+
npm run build -- --watch
24+
```
25+
26+
You should also run the grammar tests located in the `tests/testdata`. See [vscode-tmgrammar-test](https://github.com/PanAeon/vscode-tmgrammar-test) for details.
27+
28+
```sh
29+
npm run test:grammar
30+
# or the following if you want to test in watch mode
31+
npm run test:grammar -- --watch
32+
```

package-lock.json

Lines changed: 242 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "r-syntax",
33
"displayName": "R Syntax",
44
"description": "R Synxtax Highlight for Visual Studio Code",
5-
"version": "0.1.0",
5+
"version": "0.1.1",
66
"author": "REditorSupport",
77
"type": "module",
88
"license": "SEE LICENSE IN LICENSE",
@@ -126,11 +126,10 @@
126126
},
127127
"scripts": {
128128
"vscode:prepublish": "npm run build",
129+
"changelog": "npx git-cliff -o",
129130
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
130131
"test:grammar": "node ./scripts/tmgrammar-test.js 'tests/testdata/*.R' 'tests/testdata/*.Rmd'",
131-
"test:grammar-watch": "node ./scripts/tmgrammar-test.js --watch 'tests/testdata/*.R' 'tests/testdata/*.Rmd'",
132132
"build": "node ./scripts/build.js",
133-
"build-watch": "node ./scripts/build.js --watch",
134133
"postinstall": "patch-package",
135134
"package": "npm run build && vsce package",
136135
"publish": "npm run build && vsce publish",
@@ -140,6 +139,7 @@
140139
"@vscode/vsce": "^3.3.2",
141140
"chokidar": "^4.0.3",
142141
"cross-env": "^7.0.3",
142+
"git-cliff": "^2.8.0",
143143
"jest": "^29.7.0",
144144
"js-yaml": "^4.1.0",
145145
"patch-package": "^8.0.0",

0 commit comments

Comments
 (0)