https://github.com/chanind/amr-vscode
VSCode language definition for abstract meaning representation (AMR)
https://github.com/chanind/amr-vscode
Last synced: 3 months ago
JSON representation
VSCode language definition for abstract meaning representation (AMR)
- Host: GitHub
- URL: https://github.com/chanind/amr-vscode
- Owner: chanind
- License: mit
- Created: 2023-12-18T15:47:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-20T03:22:28.000Z (over 2 years ago)
- Last Synced: 2025-09-10T06:22:30.678Z (9 months ago)
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# AMR VSCode
VSCode syntax highlighting for Abstract Meaning Representation (AMR)
## About
[Abstract meaning representation](https://amr.isi.edu/index.html) is a representation of an English sentence as a directed graph, and is typically represented in text like below:
```
(w / want-01
:ARG0 (b / boy)
:ARG1 (g / go-01
:ARG0 b))
```
This VSCode extension provides syntax highlighting for AMR text, and will be automatically enabled for text files with a `.amr` or `.text.amr` file extension.
## Development
This project uses [vscode-tmgrammar-test](https://github.com/PanAeon/vscode-tmgrammar-test) to run snapshot tests of grammar parsing. You can run these tests with `npm run test`. If you make changes to the grammar, you'll need to update these snapshots with `npm run test -- --updateSnapshot`.
To load the grammar in a live vscode editor for debugging, press `F5` with the project open in VSCode and a new window with the extension loaded will open up.
## Contributing
Contributions are welcome! Open a pull request with your changes, and ensure tests are passing.
**Enjoy!**