I’m trying to implement “simple mode” for a project I’m doing. It’s working pretty nice but I would like the editor to start on “class” start on every newline. I cannot get this to work.
I’ve tried this;
end: [
{regex: /[.*]/, token: "nothing", next: "start" },
{next: "start"}
],
All other tokens are pointing to “end” so the text after those tokens have class “nothing” and have start after an “enter” (newline). It only works when there are chars between the last string and the enter…
Anyone have an idea how to solve this?
Thx!