-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Highlighting all errors the same way makes sense from a UI perspective (cough #691 cough), but it makes the tests weaker: when a test checks that an alias is highlighted as unknown-token
, it can't easily check whether that's due to a syntax error (as in alias x='() ]]'
) or due to, say, a command word not being an existing alias/function/etc. (as fixed in 9931990).
How about adding some new styles for more specific errors — e.g., unknown-token-not-a-command-name
, unknown-token-parse-error
, etc — that will be highlighted the same way by default, but will make the tests more specific?
vegerot