-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broad grammar improvements #8
base: main
Are you sure you want to change the base?
Commits on May 20, 2024
-
Move test corpus under test dir
The tree-sitter-cli expects all tests to be in a test dir within the project root.
Configuration menu - View commit details
-
Copy full SHA for f469d78 - Browse repository at this point
Copy the full SHA f469d78View commit details -
These tests broke at some point and were never updated. As the new output doesn't seem incorrect, I'm just updating the expected output to match what the grammar currently produces.
Configuration menu - View commit details
-
Copy full SHA for dd3e00c - Browse repository at this point
Copy the full SHA dd3e00cView commit details -
Update dependencies and correct package.json for tree-sitter repo
tree-sitter language repos have a specific layout and package.json which is defined by the tree-sitter project, and enforced by the tree-sitter-cli. Most of the changes in package.json are from the tree-sitter-cli updating it to conformance
Configuration menu - View commit details
-
Copy full SHA for 93bf445 - Browse repository at this point
Copy the full SHA 93bf445View commit details -
Fix tests broken by tree-sitter update
Updating tree-sitter has resulting in output changes due to improved error handling in the tree-sitter parse. The new output is much more informative when parsing errors occur compared to previous versions.
Configuration menu - View commit details
-
Copy full SHA for b1c68b5 - Browse repository at this point
Copy the full SHA b1c68b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for a2f828a - Browse repository at this point
Copy the full SHA a2f828aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d77ee40 - Browse repository at this point
Copy the full SHA d77ee40View commit details -
Add (stringFragment) node to grammar
It useful to be able to query for actual string fragments between string deliminator. The (stringFragment) now makes it possible to break down strings into their different fragments and interpolations.
Configuration menu - View commit details
-
Copy full SHA for c6e692f - Browse repository at this point
Copy the full SHA c6e692fView commit details -
There's no need to use a regex to detect types, we can detect using just the syntax tree. Using a regex results in unnecessary false-positive matches.
Configuration menu - View commit details
-
Copy full SHA for 896495e - Browse repository at this point
Copy the full SHA 896495eView commit details -
Make square bracket parser function static
tree-sitter doesn't like it when you use non-static functions as they may collide with function names in other grammars. There's no reason not to make this function static as it not used anywhere else.
Configuration menu - View commit details
-
Copy full SHA for cffba72 - Browse repository at this point
Copy the full SHA cffba72View commit details -
Fields make it much easier to write smart queries using the grammar, as things like detection of default values can be included in the grammar via field, removing the need for queries to handle those detections themselves.
Configuration menu - View commit details
-
Copy full SHA for 349e931 - Browse repository at this point
Copy the full SHA 349e931View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78e8588 - Browse repository at this point
Copy the full SHA 78e8588View commit details -
Co-authored-by: Kushal Pisavadia <[email protected]> Fix license metadata
Configuration menu - View commit details
-
Copy full SHA for 0a9dc2d - Browse repository at this point
Copy the full SHA 0a9dc2dView commit details -
Add support for nested block comments
Using grammar from here: tree-sitter/tree-sitter#2094 (comment)
Configuration menu - View commit details
-
Copy full SHA for 5b57cd0 - Browse repository at this point
Copy the full SHA 5b57cd0View commit details
Commits on May 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 138b860 - Browse repository at this point
Copy the full SHA 138b860View commit details
Commits on Jun 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e8501c4 - Browse repository at this point
Copy the full SHA e8501c4View commit details