I’d like cursorSyntaxRight to work for C code.
For example when I’m at the first paren and I run cursorSyntaxRight
it goes one char forward instead of to the end of the line:
if (eg)
f();
It works if I add @detectdelim
to the grammar. Any reason this is missing? Can we add it?
marijn
March 15, 2025, 9:27pm
2
No, that was just accidentally forgotten. This patch adds it.
committed 09:26PM - 15 Mar 25 UTC
FIX: Enable delimiter detection for the grammar, improving bracket matching
and … by-syntax cursor navigation.
See https://discuss.codemirror.net/t/add-detectdelim-to-cpp-grammar-for-cursorsyntaxright/9083
Thanks. Any chance you could release it too?
Thanks. I’m trying to update and I’m noticing that find-cluster-break
only has CJS output in dist/
. It would be handy for me if it also had ES.
Could you add the ES? I can make a PR if that would help.
Normally you use
output: [ { file: 'dist/index.cjs', format: 'cjs' },
{ dir: './dist', format: 'es' } ],
instead of
output: {
file: "dist/index.cjs",
format: "cjs"
}
marijn
March 16, 2025, 9:24am
6
From package.json:
"exports": {
"import": "./src/index.js",
"require": "./dist/index.cjs"
},
I’m not sure why you (or your tools) are looking in dist/ when the package file clearly points you to src/index.js
.
Yes OK I can parse the package.json
but all the CM packages have a dist/index.js
. It’s very convenient for a newbie who’s messing around without a bundler.