def-gthill / lexurgy

A high-powered sound change applier
GNU General Public License v3.0
48 stars 5 forks source link

[New UI] End-of-line comments break highlighting #86

Closed AdamantConlanger closed 3 months ago

AdamantConlanger commented 3 months ago

TL;DR: In the new UI, this minimal example renders with no syntax highlighting at all on the second line. Minimal example:

Feature +voiced #
Feature +long

Details: If I use the new UI, the syntax highlighting seems to work as intended in almost all cases. Weirdly, though, comments seem to break it in some very specific edge cases. Specifically, a comment preceded by at least one space on a non-empty feature-declaring or symbol-declaring line causes the remainder of the document to evade all syntax highlighting. This doesn't happen if the comment isn't preceded by a space, nor if it occupies its own line, nor if it's placed at the end of a different type of declaration, name, or rule.

def-gthill commented 3 months ago

The new UI now has its own public repo. Please open this and any future new UI issues there.