Skip to content

Commit

Permalink
small fixes to highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 27, 2024
1 parent 2f9dd49 commit 4a6dbb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ impl Compiler {
let input: EcoString = fs::read_to_string(path)
.map_err(|e| UiuaErrorKind::Load(path.into(), e.into()))?
.into();
_ = crate::lsp::Spans::from_input(&input);
// _ = crate::lsp::Spans::from_input(&input);
self.asm.inputs.files.insert(path.into(), input.clone());
self.load_impl(&input, InputSrc::File(path.into()))
}
Expand Down
9 changes: 5 additions & 4 deletions src/primitive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ impl Primitive {
(Couple, None) => Signature::new(2, 1),
(Box, None) => Signature::new(1, 1),
(Transpose | Sqrt | Round | Floor | Ceil | Rand | Utf8, _) => return self.sig(),
(Stack, Some(n)) if n >= 0 => Signature::new(n as usize, n as usize),
_ => return None,
})
}
Expand Down Expand Up @@ -2567,9 +2568,6 @@ mod tests {
{{
"include": "#module_delim"
}},
{{
"include": "#numbers"
}},
{{
"include": "#strand"
}},
Expand All @@ -2593,7 +2591,10 @@ mod tests {
}},
{{
"include": "#idents"
}}
}},
{{
"include": "#numbers"
}}
],
"repository": {{
"idents": {{
Expand Down

0 comments on commit 4a6dbb1

Please sign in to comment.