We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5fc778 commit cfd249aCopy full SHA for cfd249a
src/parser.jl
@@ -52,7 +52,7 @@ function expand_implicit_exponents(s::AbstractString)::String
52
# This is an explicit exponent, keep it as is
53
write(result, c)
54
i += 1
55
- # Check if it's preceded by a letter or ')' (unit name or parenthesized expression)
+ # Check if it's preceded by a letter or ')' (unit name or parenthesized expression)
56
elseif i > 1 && (isletter(chars[i-1]) || chars[i-1] == ')')
57
# This is an implicit exponent - collect all consecutive digits
58
write(result, '^')
0 commit comments