Skip to content
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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Commits on May 20, 2024

  1. Move test corpus under test dir

    The tree-sitter-cli expects all tests to be in a test dir within the
    project root.
    thomaspurchas committed May 20, 2024
    Configuration menu
    Copy the full SHA
    f469d78 View commit details
    Browse the repository at this point in the history
  2. Fix older tests

    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.
    thomaspurchas committed May 20, 2024
    Configuration menu
    Copy the full SHA
    dd3e00c View commit details
    Browse the repository at this point in the history
  3. 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
    thomaspurchas committed May 20, 2024
    Configuration menu
    Copy the full SHA
    93bf445 View commit details
    Browse the repository at this point in the history
  4. 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.
    thomaspurchas committed May 20, 2024
    Configuration menu
    Copy the full SHA
    b1c68b5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a2f828a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d77ee40 View commit details
    Browse the repository at this point in the history
  7. 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.
    thomaspurchas committed May 20, 2024
    Configuration menu
    Copy the full SHA
    c6e692f View commit details
    Browse the repository at this point in the history
  8. Improve type highlights

    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.
    thomaspurchas committed May 20, 2024
    Configuration menu
    Copy the full SHA
    896495e View commit details
    Browse the repository at this point in the history
  9. 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.
    thomaspurchas committed May 20, 2024
    Configuration menu
    Copy the full SHA
    cffba72 View commit details
    Browse the repository at this point in the history
  10. Add useful fields to nodes

    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.
    thomaspurchas committed May 20, 2024
    Configuration menu
    Copy the full SHA
    349e931 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    78e8588 View commit details
    Browse the repository at this point in the history
  12. Update pyproject.toml

    Co-authored-by: Kushal Pisavadia <[email protected]>
    
    Fix license metadata
    thomaspurchas committed May 20, 2024
    Configuration menu
    Copy the full SHA
    0a9dc2d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    5b57cd0 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    138b860 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2024

  1. Configuration menu
    Copy the full SHA
    e8501c4 View commit details
    Browse the repository at this point in the history