Comments (5)
Thanks @szlend, we're going to take a look, maybe re-use what you did as a base. I dream that one day we will only write one grammar specification, and derive a parser, various highlighters and plugins for editors, whatever is needed for a formatter, etc. but that day hasn't come yet 😞
from nickel.
I'm not a VSCode user, so I don't know much about extension development, but that would be great if we could just piggy-back on tree-sitter, as we maintain a fairly up-to-date grammar already. It's hard to keep the number down (Vim, the Nickel parser, Prism.js for highlighting on the website, etc.), but the less grammars we have to maintain, the better 🙂
from nickel.
There's no vscode tree-sitter support yet, but they're discussing it. Until then I quickly hacked together a more complete and up to date vscode package:
https://marketplace.visualstudio.com/items?itemName=szlend.unofficial-vscode-nickel
from nickel.
Done in PR #1405
from nickel.
Syntax highlighting has been added and the extension is now available on the VSCode Market Place: https://marketplace.visualstudio.com/items?itemName=Tweag.vscode-nickel
from nickel.
Related Issues (20)
- List equality in contracts can cause some big slowdowns when applied several times HOT 7
- A way to assign a variable to a field with the same name HOT 1
- LSP: Completion shouldn't suggest variable names for record fields HOT 1
- A completion candidate can shadow a more informative one HOT 3
- Unresolved import causes `nls` to panic HOT 5
- Auto-generate Nickel contracts from Kubernete resource specifications HOT 1
- Non-deterministic typecheck LSP errors when modifying a transitive import of a file HOT 1
- LSP crash on _some_ modifications of a file imported in another HOT 1
- `std.record.get_or` is not working as expected HOT 1
- Wrong version is reported by `nickel --version` for release artifacts HOT 7
- Variant of `std.contract.from_predicate` to specify an error message
- Some utilities in `std.array`: `remove_duplicates` and `filter_map` HOT 5
- Allow my users to use contracts shared on GitHub HOT 2
- `nickel doc` overflows the stack with recursive schemas HOT 2
- Forward the metadata when re-exporting a field HOT 1
- Hovering on a record field defined several times will only show the information for the first definition HOT 1
- Filter out the contract annotations on hover/completion when they don't add anything
- Output query results as JSON HOT 4
- Add empty YAML header when exporting
- Encode/decode JSON string HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nickel.