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

Use type tags #1

Merged
merged 2 commits into from
Mar 3, 2024
Merged

Use type tags #1

merged 2 commits into from
Mar 3, 2024

Conversation

segevfiner
Copy link
Owner

Copy link

@ObserverOfTime ObserverOfTime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tstag() {
    b2sum -l64 <(printf tree-sitter) <(printf "$1") | \
      awk '{printf "0x" toupper($1) (NR == 1 ? ", " : "\n")}'
}

tstag language # => 0x8AF2E5212AD58ABF, 0xD5006CAD83ABBA16
tstag query # => 0x8AF2E5212AD58ABF, 0x7B1FAB666CBD6803
tstag tree # => 0x8AF2E5212AD58ABF, 0x7FA28BFC1966AC2D

Copy link

@ObserverOfTime ObserverOfTime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tstag function should be included in a CONTRIBUTING.md file instead of being copy pasted every time, but this is fine since there isn't one yet.

@Adawntoremember
Copy link

/

@segevfiner segevfiner merged commit 2124edf into napi-2 Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants