-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(treesitter): support for objdump files (#320)
* Added aerial queries for objdump Added objdump to minimal_init.lua * ci: tests fail if changes to snapshot files * cleanup: comments on test filetype special cases * test: add objdump test snapshots --------- Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
- Loading branch information
1 parent
3a3baf0
commit eb301a4
Showing
6 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(disassembly_section_label | ||
(identifier) @name | ||
(#set! "kind" "Interface")) @type | ||
|
||
(disassembly_section | ||
(identifier) @name | ||
(#set! "kind" "Function")) @type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
"col": 0, | ||
"end_col": 29, | ||
"end_lnum": 1, | ||
"kind": "Interface", | ||
"level": 0, | ||
"lnum": 1, | ||
"name": ".text", | ||
"selection_range": { | ||
"col": 23, | ||
"end_col": 28, | ||
"end_lnum": 1, | ||
"lnum": 1 | ||
} | ||
}, | ||
{ | ||
"col": 0, | ||
"end_col": 91, | ||
"end_lnum": 9, | ||
"kind": "Function", | ||
"level": 0, | ||
"lnum": 3, | ||
"name": "<engine::world::World::createEntity()>", | ||
"selection_range": { | ||
"col": 17, | ||
"end_col": 55, | ||
"end_lnum": 3, | ||
"lnum": 3 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Disassembly of section .text: | ||
|
||
0000000000000000 <engine::world::World::createEntity()> (File Offset: 0x70): | ||
_ZN6engine5world5World12createEntityEv(): | ||
/home/selecaoone/repositories/jumpy/engine/src/lib/world.cpp:14 | ||
0: 48 89 f8 mov rax,rdi | ||
_ZNKSt15__uniq_ptr_implIN6engine13entityManager13EntityManagerESt14default_deleteIS2_EE6_M_ptrEv(): | ||
/opt/rh/devtoolset-9/root/usr/include/c++/9/bits/unique_ptr.h:154 | ||
3: 48 8b 4f 40 mov rcx,QWORD PTR [rdi+0x40] |