-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add Elm and C# to emacs-tree-sitter #79
Conversation
I’ve added a revision now, hopefully we are good to go? As a side note: when building queries for these languages, should they be put here or in their respective major modes? |
I changed symbol name to underscore, and it seems to work, however, I saw you added another commit to deal with this? Should I revert that last commit? 😄 Edit: I'm getting confused :P rebased on you latest master, rolling back to not using |
Add sources for tree-sitter-elm as well as registering it for elm-mode
1f9ba61
to
f19105d
Compare
Yes, I'll make a release for
They should be in the major mode. It's briefly explained in #70 (comment). The main reason a major mode would need
Yeah, you should use hyphen. I added that fix for this PR.
What was the error? With that commit this PR works for me. |
Great!
Ok, I've opened a new branch in
Ok, adding back the hyphen!
When ;;; Link known major modes to languages in the bundle.
(pcase-dolist
(`(,major-mode . ,lang-symbol)
(reverse '((agda-mode . agda)
;; ...
(csharp-mode . c-sharp) ;; <-- with hyphen
;; ...
(tuareg-mode . ocaml)
(typescript-mode . typescript))))
(setf (map-elt tree-sitter-major-mode-language-alist major-mode)
lang-symbol)) I get I'll just add another commit with hyphens everywhere, and you can take it from there? |
Add csharp-mode as a major mode for editing C#
479e548
to
f6cc81e
Compare
I updated the hash to the new release that came yesterday - |
That commit required publishing a new version of, or rebuilding I added a new commit that changes It should work now, even before I publish the new binaries for |
I published new binaries, rebased your commits and merged them. Closing this manually as GitHub doesn't seem to handle rebased commits correctly. |
Hello!
As a first step to fix emacs-csharp/csharp-mode#201 I think it is a good idea to add support for
emacs-tree-sitter
tocsharp-mode
. I also addedelm-mode
since I'm also working on a major mode for that one. I hope I understood your documentation correctly. If not, please point me in the proper direction, and I will amend the changes provided here.Have a nice day!