#Referring to 1) styled enum elements seems to break syntax highlighting

20 messages · Page 1 of 1 (latest)

vocal dune
#

#set enum(numbering: "1)a)")
We have a lot to check here:

  • The graph is acyclic: this is because when going along edges, $l(y)-l(x)$ strictly decreases. (In 1), $x(i)<x(j)$. In 2) and 3), $y(i)>y(j)$.),
median depot
#

indeed the last parens doesnt seem to be matching anything

#

within $...$ you're in math mode, where parens may have differing meanings depending on whether you're calling a function or not

#

outside of it you're in markup mode, where all parentheses are literal

#

note that when you type #something(), # begins code mode, where parentheses are not literal

#

but in markup mode they are always literal

vocal dune
median depot
#

ah, i didnt notice

#

but i mean

#

what is wrong with the syntax highlighting?

vocal dune
#

It considers (in 1) to be matching parentheses. If I type a '(' inside it, the online editor won't give an automatic ')'. Highlighting faces similar issues.

median depot
#

what are you using for highlighting?

#

which editor etc

#

oh the web app

#

i assume the document still compiles though, yeah?

#

it's likely just some regex failure somewhere

#

it's trying to be smart but failing

#

¯_(ツ)_/¯

#

you can try to #[1)] instead

vocal dune
#

The webapp, and vscode. They both fail.