The c++ lang file is not written right.
Opened this issue · 4 comments
Describe the bug
The c++ lang file uses "add_comment()" function wrong and the autocorrect is used wrong.
Expected behavior
I expected the add comment fucnction to add comments in the "Ctrl+L" menu, but it's written like this:
--- Comments
add_comment("//", "", "comments", true)
add_comment("/*", "*/", "comments", false)
And the autocorrect feature is written wrong.
It trys to autocorrect types as variables and functions.
Desktop (please complete the following information):
- OS: Arch linux
- Version 1.2.2 (build from source with compability mode, but that shouldn't matter)
And sorry for my bad english.
Describe the bug The c++ lang file uses "add_comment()" function wrong and the autocorrect is used wrong.
Expected behavior I expected the add comment fucnction to add comments in the "Ctrl+L" menu, but it's written like this:
--- Comments add_comment("//", "", "comments", true) add_comment("/*", "*/", "comments", false)And the autocorrect feature is written wrong. It trys to autocorrect types as variables and functions.
Desktop (please complete the following information):
- OS: Arch linux
- Version 1.2.2 (build from source with compability mode, but that shouldn't matter)
And sorry for my bad english.
There is no way to add types to autocomplete and show them as types.
GriddyCode only has detect_functions
and detect_variables
, if you want to add autocomplete for types, you'll have to put it in detect_functions
or detect_variables
. This could be fixed by allowing plugins to specify the type of autocomplete each item is and merge detect_functions
and detect_variables
into a callback named autocomplete
, detect
, or etc...
I ment it shouldnt autocorrect types
Describe the bug
The c++ lang file uses "add_comment()" function wrong and the autocorrect is used wrong.Expected behavior
I expected the add comment fucnction to add comments in the "Ctrl+L" menu, but it's written like this:--- Comments add_comment("//", "", "comments", true) add_comment("/*", "*/", "comments", false)And the autocorrect feature is written wrong.
It trys to autocorrect types as variables and functions.Desktop (please complete the following information):
- OS: Arch linux
- Version 1.2.2 (build from source with compability mode, but that shouldn't matter)
And sorry for my bad english.
They accidentally used add_comment
instead of highlight_region
.
add_comment
is used for adding comments to the CTRL + L (the Bussin Reels menu)
I ment it shouldnt autocorrect types
I'd prefer that types would be in autocomplete instead of not. Maybe GriddyCode should expand its autocomplete types and merge the autocomplete functions into 1 function.