Skip to content

C++ highlighting fails to highlight certain comma/modulo-heavy code #76

@Qix-

Description

@Qix-

Sorry for the cruddy title, I don't really know the root cause so I made a best effort guess. Feel free to edit it.

The following valid C++ code completely breaks highlighting, namely for the strings:

auto cli = (
	option("--help").set(show_help)
		% "Show this help message",
	(option("-J", "--threads") & value("num_threads", num_threads))
		% "The number of threads to use (default 0, meaning 'auto')",
	value("db_dir").set(dbdir).required(true).blocking(true)
		% "The database directory location",
	any_other(invalid_params)
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions