Skip to content
Source
Sign inSign up
TanStack/highlight

Add isolated C++ and CMake highlighting #17

Mergedtannerlinsleymerged 1 commit intomain fromtaren/cpp-cmake-languagesmerged by tannerlinsley

tannerlinsleycommented

Add isolated C++ and CMake definitions for documentation fences. C++ handles raw and prefixed strings, character literals, digit separators, includes, and common aliases. CMake handles bracket strings/comments, nested variable references, generator expressions, and flow commands.

The shared core and existing selective bundles are unchanged. Both languages together add 955 gzip bytes to the all-language bundle on Node 24.15.0, taking it from 8,663 to 9,618 bytes. Add dedicated selective bundle checks and runtime profiles for both languages, and update docs, skills, and the release changeset.

Validation: full pnpm run verify passes, including 100 tests, public package imports, isolation checks, bundle budgets, and all throughput profiles.

Fixes #12.

    1. Warning

      Review limit reached

      Next included review available in 53 minutes.

      Check out review usage here.

      View limit details

      Limit details: You’ve used the included review currently available.

      You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

      Learn how review limits work.

      Review configuration:

      ⚙️ Run configuration

      Configuration used: defaults

      Review profile: CHILL

      Plan: Advanced

      Run ID: 9762b529-b193-4d7e-80df-ddf7b7a1d04f

      📥 Commits

      Reviewing files that changed from the base of the PR and between 629124b3447c031ec0cc908f58b4ccfe800bb438 and 6f0dd9ccd0f68f749cd2b6185ab2342ee54439f7.

      📒 Files selected for processing (19)
      • .changeset/cpp-cmake.md
      • README.md
      • docs/guides/performance.md
      • docs/installation.md
      • docs/language-support.md
      • docs/reference/default-entry.md
      • docs/reference/languages.md
      • docs/test-strategy.md
      • scripts/bench.mjs
      • scripts/language-utils.mjs
      • scripts/measure-size.mjs
      • skills/configure-selective-highlighting/references/languages.md
      • src/index.ts
      • src/languages/cmake.ts
      • src/languages/cpp.ts
      • src/languages/index.ts
      • test/cpp-cmake.test.ts
      • test/fixtures.ts
      • test/real-doc-fixtures.test.ts

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. tannerlinsley merged this71594ad

    3. tannerlinsley closed this

Sign in to join this conversation.