Comments (2)
Not sure why you get this output, do you use tip, which version of tree-sitter ?
alias:
should be seen when some cue alias is defined like:
✦ tree-sitter --version
tree-sitter 0.20.8
✦ cat test.cue
{
id: 1
FirstAlias=b: 2
}
[SecondAlias=string]: int
✦ tree-sitter parse test.cue
(source_file [0, 0] - [6, 0]
(struct_lit [0, 0] - [3, 1]
(field [1, 1] - [1, 6]
(label [1, 1] - [1, 3]
(identifier [1, 1] - [1, 3]))
(value [1, 5] - [1, 6]
(int_lit [1, 5] - [1, 6])))
(field [2, 1] - [2, 16]
(label [2, 1] - [2, 13]
alias: (identifier [2, 1] - [2, 11])
(identifier [2, 12] - [2, 13]))
(value [2, 15] - [2, 16]
(int_lit [2, 15] - [2, 16]))))
(field [5, 0] - [5, 25]
(label [5, 0] - [5, 20]
(optional [5, 1] - [5, 19]
alias: (identifier [5, 1] - [5, 12])
(string_type [5, 13] - [5, 19])))
(value [5, 22] - [5, 25]
(int_type [5, 22] - [5, 25]))))
from tree-sitter-cue.
Not sure why you get this output, do you use tip, which version of tree-sitter?
I think it was the Emacs treesit-auto package that took care of downloading and building the library, so it probably pulled the head revision here.
I see the output via Emacs's treesit-explore-mode
. I had installed tree-sitter-cli via npm, presumably at version 0.20.8.
from tree-sitter-cue.
Related Issues (7)
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-cue.