Comments (6)
Thanks @mikayla-maki, Appreciate the info. The core-team at nushell is not very good at tree-sitter. In fact, most of this repo was from the community mostly by @1Kinoti. We'd love to have more people contributing to this repo to make our editor experience a bit better.
from tree-sitter-nu.
yay @1Kinoti's back. Good to see you around here again! ❤️
from tree-sitter-nu.
For reference, here's what TypeScript's tree sitter parser produces for a similar file:
![Screenshot 2023-09-09 at 3 55 56 PM](https://private-user-images.githubusercontent.com/2280405/266805334-27e05f9d-56ec-4c09-b144-e86ee437347f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMDIzNzYsIm5iZiI6MTcyMTMwMjA3NiwicGF0aCI6Ii8yMjgwNDA1LzI2NjgwNTMzNC0yN2UwNWY5ZC01NmVjLTRjMDktYjE0NC1lODZlZTQzNzM0N2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MThUMTEyNzU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjVkOTM2NjQ1NDM3MDJlNzA2NDVkY2Y3Njg2ZWFjMzBhNDBjMDE4ZWVjYjQ5YWUwZjYwN2M3YzQ5ZTk1NTVlNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.aOrqYL2uRzhbKY3-Vr9K6zo_3fCLH_cBX63nTybLIfw)
from tree-sitter-nu.
thanks @mikayla-maki.
i already have a fix for this issue in mind and will make a pr for it.
edit: #30
from tree-sitter-nu.
thanks @fdncred.
from tree-sitter-nu.
fixed by #30
from tree-sitter-nu.
Related Issues (20)
- Parsing of pipeline fails when the first pipeline element is variable or control expression, and there is a newline before the next element HOT 2
- Parsing of range fails HOT 1
- Incorrect parsing for long param flag with dashes HOT 1
- A newline between `}` and `else` cause parse error HOT 5
- Parsing of list destruction match pattern fails
- Fails to parse unquoted string containing symbols in a list
- command identifier with `?` is not parsed correctly
- Some record keys are not parsed correctly
- Closure parsed as a record HOT 3
- `duration` is parsed as a `string` when used as an argument.
- helix integration with nushell syntax highlighting HOT 12
- `inf` is parsed as a number unless quoted HOT 2
- script of the sort "^'bin' command" is not parsed HOT 3
- Can we simplify this part of the grammar? HOT 1
- Wrong highlighting in if else statement. HOT 4
- use *file* identifier: produces a tree-sitter error HOT 8
- Help with finding ERRORs in tree-sitter-nu. HOT 1
- Add support for new nushell feature - raw strings
- Support the spread operator HOT 1
- syntax highlighting is off after PR #99
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 tree-sitter-nu.