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

Syntax highlighting for NASM/Assembly #5018

Closed
ghost opened this issue Dec 5, 2022 · 5 comments
Closed

Syntax highlighting for NASM/Assembly #5018

ghost opened this issue Dec 5, 2022 · 5 comments
Labels
R-duplicate Duplicated issue: please refer to the linked issue

Comments

@ghost
Copy link

ghost commented Dec 5, 2022

How do i get syntax highlighting for assembly code?

@kirawi
Copy link
Member

kirawi commented Dec 5, 2022

You can look at https://docs.helix-editor.com/guides/adding_languages.html
There is also already a tree-sitter grammar at https://github.com/bearcove/tree-sitter-x86asm

@Ordoviz
Copy link
Contributor

Ordoviz commented Dec 6, 2022

Duplicate of #3329

@ghost
Copy link
Author

ghost commented Dec 6, 2022

I'm not very familiar with what a tree-sitter is and grammer etc. Please explain.

@the-mikedavis
Copy link
Member

You can read more about tree-sitter here: https://tree-sitter.github.io/tree-sitter/

We use "grammar" to mean the repository that has the grammar.js rules that generate a tree-sitter parser.

Also see the guide that Kirawi linked: https://docs.helix-editor.com/guides/adding_languages.html

@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2022
@the-mikedavis the-mikedavis added the R-duplicate Duplicated issue: please refer to the linked issue label Dec 6, 2022
@ghost
Copy link
Author

ghost commented Dec 18, 2022

A step by step process for adding it will be helpful. It all looks confusing and vague without examples. Even the linked tree-sitter repository gives no clue on how to get things working. Please explain like i'm 5.
@the-mikedavis
@Ordoviz
@kirawi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

3 participants