Open shavesha opened 9 months ago
Sorry for the late reply. I am not that familiar the C family of languages, I have tried to modify the syntax to the best of my ability, Spck Editor is based off of Ace editor and Ace editor syntax highlighting works off of regex expressions and not AST trees like VSCode, there are tradeoffs and limitations. Can you maybe post some examples with what you expect to see, or if you can contribute to the ace editor repository with an update of the C++ syntax mode?
Thanks and Happy new year!
Thanks for the info. I shall visit the ace editor repo. The basic solution is to restrict highlighting to only the words on this list https://en.cppreference.com/w/cpp/keyword. After looking at the repo I have identified this as my target https://github.com/ajaxorg/ace/blob/master/src/mode/c_cpp_highlight_rules.js. If am in the right place then I see the problem and will try my best to make a contribution.
I have reported this previously ans it was solved for keywords. However, it remains an issue because words that a not c++ keywords are highlighted. Words like "signal" and literally every known math function. I hope that even thought c++ is not spcks main language it can get some love. Bottomline syntax Highlighting needs work.
Merry Christmas