Skip to content

Commit

Permalink
feat(nasm): add textobjects
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime authored and theHamsta committed Oct 16, 2023
1 parent 76c7a89 commit f416be5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions queries/nasm/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
;; adapted from https://github.com/naclsn/tree-sitter-nasm/blob/main/queries/textobjects.scm

(preproc_multiline_macro
body: (body) @function.inner) @function.outer
(struc_declaration
body: (struc_declaration_body) @class.inner) @class.outer
(struc_instance
body: (struc_instance_body) @class.inner) @class.outer

(preproc_function_def_parameters
(word) @parameter.inner)
(call_syntax_arguments
(_) @parameter.inner)
(operand) @parameter.inner

(comment) @comment.outer

0 comments on commit f416be5

Please sign in to comment.