From 839326946560166da84c04d4770385795d96cff0 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 10 Apr 2026 23:38:47 +0800 Subject: Add completion system with shell context and dispatcher integration --- mingling_macros/src/node.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mingling_macros/src/node.rs') 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 = 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() -- cgit