Skip to content

fix(arrays): accept C++ brace matrices - #33

Merged
salsadsid merged 1 commit into
salsadsid:mainfrom
PandaHUN777:fix/cpp-array-braces
Oct 17, 2026
Merged

salsadsid merged 1 commit into
salsadsid:mainfrom
PandaHUN777:fix/cpp-array-braces

Conversation

@PandaHUN777

Copy link
Copy Markdown
Contributor

Fixes #12.

Accepts C++ brace arrays outside quoted strings, labels them C++, and keeps JSON objects on their existing error path. Tests cover 2D and 1D arrays, quoted colons, and object rejection.

Verified in PRTEST: npm run lint; npm test (90 passed); npm run build; git diff --check.

@vercel

vercel Bot commented Sep 27, 2026

Copy link
Copy Markdown

@PandaHUN777 is attempting to deploy a commit to the salsadsid's projects Team on Vercel.

A member of the Team first needs to authorize it.

@salsadsid
salsadsid merged commit 11e89e4 into salsadsid:main Oct 17, 2026
1 of 2 checks passed
@salsadsid

Copy link
Copy Markdown
Owner

Thanks @PandaHUN777, and sorry this sat for a while! Merged. On top of current main: lint clean, 113/113 tests, and {{1,2},{3,4}} now reads as a 2×2 grid with the C++ badge. Backing off when there's an unquoted colon is a nice touch: JSON objects still get the friendly error. I opened #37 for the next step (pasting a whole int a[2][3] = {…}; declaration) in case you'd like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2D array input: accept C++ style braces {{1,2},{3,4}}

2 participants