@b4n commented on this pull request.
> + styler.ColourTo(endPos, SCE_SINEX_DEFAULT);
+ }
+}
+
+
+// Colourization logic for a whole area
+// The area is split into lines which are separately processed
+void ColouriseSinexDoc(Sci_PositionU startPos, Sci_Position length, int,
WordList *[], Accessor &styler) {
+ // initStyle not needed as each line is independent
+ std::string lineBuffer;
+ styler.StartAt(startPos);
+ styler.StartSegment(startPos);
+ Sci_PositionU startLine = startPos;
+
+ for (Sci_PositionU i = startPos; i < startPos + length; i++) {
+ lineBuffer.push_back(styler[i]);
You can look at e.g. LexPO or LexForth for very simple ones. More complex ones
include e.g. LexRust.
However, if upstream Lexilla (i.e. Neil) is happy with this state, I'm fine
with it. If you got time you could check if using a state machine measurably
improves performance, but that's not a requirement at all.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/4449#discussion_r2679398951
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/4449/review/[email protected]>