Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/emmylua_doc_cli/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub fn render_const(typ: &LuaType) -> Option<String> {
LuaType::StringConst(s) | LuaType::DocStringConst(s) => {
Some(format!("{:?}", s.to_string()))
}
LuaType::BooleanConst(b) => Some(b.to_string()),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This is a good addition, but it seems to be incomplete. The LuaType enum also has a DocBooleanConst variant, which should probably be handled here as well, similar to how DocIntegerConst and DocStringConst are handled in the same function.

Suggested change
LuaType::BooleanConst(b) => Some(b.to_string()),
LuaType::BooleanConst(b) | LuaType::DocBooleanConst(b) => Some(b.to_string()),

_ => None,
}
}