diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-24 16:26:08 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-24 16:26:08 +0200 |
| commit | c8138a0fc5353dc9017fc32fb5ef12a6fe780415 (patch) | |
| tree | f8c88e98bfad1afa0456cc81ea23af678d9876a5 /lib/xixanta/src/node.rs | |
| parent | cf767fc97329b83aa4091e745c204552514f3983 (diff) | |
| download | tools.nes-c8138a0fc5353dc9017fc32fb5ef12a6fe780415.tar.gz tools.nes-c8138a0fc5353dc9017fc32fb5ef12a6fe780415.zip | |
Add the .version pseudo-variable
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'lib/xixanta/src/node.rs')
| -rw-r--r-- | lib/xixanta/src/node.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/xixanta/src/node.rs b/lib/xixanta/src/node.rs index 3803840..af76edd 100644 --- a/lib/xixanta/src/node.rs +++ b/lib/xixanta/src/node.rs @@ -170,6 +170,7 @@ pub enum ControlType { EndIf, Defined, Echo(EchoKind), + Version, } impl fmt::Display for ControlType { @@ -200,6 +201,7 @@ impl fmt::Display for ControlType { ControlType::Else => write!(f, ".else"), ControlType::EndIf => write!(f, ".endif"), ControlType::Defined => write!(f, ".defined"), + ControlType::Version => write!(f, ".version"), ControlType::Echo(t) => match t { EchoKind::Info => write!(f, ".info"), EchoKind::Warning => write!(f, ".warning"), |
