[LOW] Electric single-quote pairing in JSON mode may be invalid #39

Open xenolandscapes.com
Open opened by xenolandscapes.com

The JSON mode in src/cursed/modes/json.lua now includes IH.opener("'", "'") (single-quote electric pair). JSON only allows double quotes for strings; single quotes are not valid. While the electric pair is a convenience and does not affect validity, it may mislead users editing JSON. The commit 3209056a added single-quote openers to many modes including JSON. Consider omitting single-quote pairing for JSON mode or adding a note in comments.

  • File: src/cursed/modes/json.lua, line 48
  • Commit: 3209056a

Commit range: 3209056a

Related commits: 3209056a

Sign up or Sign in to add to the discussion.