Skip to content

Transition to C implementation of scanner.c - #86

Closed
KazMorita wants to merge 3 commits into
nvim-neorg:mainfrom
KazMorita:c_transition
Closed

KazMorita wants to merge 3 commits into
nvim-neorg:mainfrom
KazMorita:c_transition

Conversation

@KazMorita

Copy link
Copy Markdown

Hello,

Since the newest tree-sitter no longer supports scanner.cc, I created scanner.c to make it compatible. I generated this with Claude AI and manually checked every line for consistency. So far, I have not spotted any discrepancy, but it is possible that I have overlooked something, so I would test this a bit more before merging into the main branch.
There are minor changes in scanner.c:

  • Ignored "<<" operator overloading.
  • Reimplemented class as functions taking structure as an argument.
  • [[nodiscard]] for bool check_detached ignored.

I also rewrote:

  • Package.swift
  • tree-sitter-norg-scm-1.rockspec
  • binding.gyp
  • build.rs

I only use this package through nvim-treesitter, so these are not thoroughly tested.

@ALVAROPING1

Copy link
Copy Markdown

this was already being worked on in #82

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.

2 participants