diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-10-13 19:35:01 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2025-10-21 13:52:39 -0400 |
| commit | 5d4fc5f1fb7a0c368d2a048a5d750564c970c9c9 (patch) | |
| tree | cd740b4af25fe5184935fd67067025733f17b099 /rust/src | |
| parent | cae26921cf2b2e564f66e58b77a3963fe36f6d2d (diff) | |
Add derived strings and string recognizer API
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/disassembly.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/src/disassembly.rs b/rust/src/disassembly.rs index cd5a860d..75bf28fa 100644 --- a/rust/src/disassembly.rs +++ b/rust/src/disassembly.rs @@ -975,6 +975,8 @@ pub enum InstructionTextTokenContext { Expanded, /// Use only with [`InstructionTextTokenKind::CollapseStateIndicator`] CollapsiblePadding, + /// Use only with [`InstructionTextTokenKind::String`] + DerivedStringReference, } impl From<BNInstructionTextTokenContext> for InstructionTextTokenContext { @@ -1002,6 +1004,9 @@ impl From<BNInstructionTextTokenContext> for InstructionTextTokenContext { BNInstructionTextTokenContext::ContentCollapsedContext => Self::Collapsed, BNInstructionTextTokenContext::ContentExpandedContext => Self::Expanded, BNInstructionTextTokenContext::ContentCollapsiblePadding => Self::CollapsiblePadding, + BNInstructionTextTokenContext::DerivedStringReferenceTokenContext => { + Self::DerivedStringReference + } } } } @@ -1023,6 +1028,7 @@ impl From<InstructionTextTokenContext> for BNInstructionTextTokenContext { InstructionTextTokenContext::Collapsed => Self::ContentCollapsedContext, InstructionTextTokenContext::Expanded => Self::ContentExpandedContext, InstructionTextTokenContext::CollapsiblePadding => Self::ContentCollapsiblePadding, + InstructionTextTokenContext::DerivedStringReference => Self::DerivedStringReferenceTokenContext, } } } |
