Skip to content

[BUG]: C/C++ Spell-Checking is Missing for Declarators Without Initializers #255

@zbreit

Description

@zbreit

Issue Description

Codebook's C and C++ spell checking does not classify declarations without initial values as spelling errors. For example:

// Codebook does not catch any spelling errors here
int helloo_worldd;

// Codebook marks "helloo" and "worldd" as spelling errors
int helloo_worldd_2 = 0;

Operating System

Linux (Arch)

Editor

Zed

Codebook Version

0.3.38

Configuration

N/A

Steps to Reproduce

  1. Create a new C or C++ file.

  2. Copy in the following example:

    int foo() {
        int helloo_worldd;
    }

Expected Behavior

helloo and worldd are not caught as spelling errors.

Actual Behavior

helloo and worldd should be makred as spelling errors.

Code Sample

See above example.

Log Output

N/A

Additional Context

I plan to submit a PR later today to address this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions