c.tmbundle icon indicating copy to clipboard operation
c.tmbundle copied to clipboard

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

Open Qix- opened this issue 3 years ago • 0 comments

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)
);

Qix- avatar Mar 26 '22 23:03 Qix-