You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would simplify the grammar... making it really CPP + extra keywords. And right now one has to pick:
Do they want CPP highlighting
Do they want Arduino highlighting (which is a very light subset of CPP + Arduino stuff) and crappier C++ highlighting
Plus currently the auto-detect is in competition with itself other over C++ code... when there should be no contest... It's either C++ or it's C++ with Arduino stuff (which should clearly win). Right now they detect entirely different things... so Arduino code might flag as C++ code, losing it's Arduino coloring...
This type of thing would seem to be trivial if we switch to ES6 modules and a build system... what I really want to do for Arduino is require the CPP file and then use it in raw form...
The existing build system makes it much harder to do this.
The text was updated successfully, but these errors were encountered:
Ok, actually this was easier than I thought. :-) Can just ask Highlight.js to save the original builder and make it an attribute of language that other languages can then access.
joshgoebel
changed the title
Feature: Arduino should depend on CPP (becoming a superset)
Feature: Make a Arduino a pure super-set of the CPP grammar
Oct 13, 2019
joshgoebel
changed the title
Feature: Make a Arduino a pure super-set of the CPP grammar
(arduino) Feature: Make a Arduino a pure super-set of the CPP grammar
Oct 13, 2019
This would simplify the grammar... making it really CPP + extra keywords. And right now one has to pick:
Plus currently the auto-detect is in competition with itself other over C++ code... when there should be no contest... It's either C++ or it's C++ with Arduino stuff (which should clearly win). Right now they detect entirely different things... so Arduino code might flag as C++ code, losing it's Arduino coloring...
This type of thing would seem to be trivial if we switch to ES6 modules and a build system... what I really want to do for Arduino is
require
the CPP file and then use it in raw form...The existing build system makes it much harder to do this.
The text was updated successfully, but these errors were encountered: