Helix recognizes C header files as C++ files #16117
Replies: 2 comments
|
the issue is, that very frequently C++ projects also use while an option to just try to look for neighboring the idea with just using C++ is, that C++ is supposed to be an almost superset of C (even if that is not actually super true in a lot of cases) and C++ highlighting should work correctly for all C files, but not vice-versa. the issue you have with the configuration in |
|
Yeah, I know most C++ header files are also using |
Uh oh!
There was an error while loading. Please reload this page.
I changed
tab-widthfor C files in thelanguages.tomlfile and for.cfiles it works but the default indenting was used for every.hfile.In the statusline file-type shows
cppinstead ofcfor header files.I fixed by also setting the
tab-widthforcppbut because it sees them as C++ files I might get some C++ completion instead of C completion.I don't know if this is an issue, is there a way to fix this?
All reactions