diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-10 23:38:47 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-10 23:38:47 +0800 |
| commit | 839326946560166da84c04d4770385795d96cff0 (patch) | |
| tree | edac8bcb0ca29e3c83eec1d9468e5b899a7f7729 /mingling_macros/src/node.rs | |
| parent | b18749170b6006e53976dbb6df9f59a3b9c34127 (diff) | |
Add completion system with shell context and dispatcher integration
Diffstat (limited to 'mingling_macros/src/node.rs')
| -rw-r--r-- | mingling_macros/src/node.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mingling_macros/src/node.rs b/mingling_macros/src/node.rs index 8cb88d3..be47374 100644 --- a/mingling_macros/src/node.rs +++ b/mingling_macros/src/node.rs @@ -39,7 +39,13 @@ pub fn node(input: TokenStream) -> TokenStream { // Split the path by dots let parts: Vec<String> = path_str .split('.') - .map(|s| kebab_case!(s).to_string()) + .map(|s| { + if s.starts_with('_') { + s.to_string() + } else { + kebab_case!(s).to_string() + } + }) .collect(); // Build the expression starting from Node::default() |
