Cudatext: Lite lexer is broken (1.126.4 -> 1.127)

Created on 19 Mar 2021  路  16Comments  路  Source: Alexey-T/CudaText

I have created a simple lite lexer for text files which so far has worked well. Now it's broken, for instance the numbers are highlighted only v haphazardly.

{
  "about": "htxt",
  "files": "*.htxt;*.txt",
  "case_sens": true,
  "rules": {
    "keyword": {
      "regex": "^\\..+?\\b",
      "style": "IdKeyword"
    },
    "num": {
      "regex": "\\b(\\d+(\\.\\d+)?([eE][-\\+]?\\d+)?)\\b",
      "style": "Number"
    },
  }
}

bug can be closed

All 16 comments

what text lines are not highlighted OK? do you see it allways of randomly?
this lexer highlightes numbers ok here.

Screenshot from 2021-03-19 19-51-26

I have told you what I know about this. This has worked perfectly well for months until sometime recently and it has stopped working now. If you can't repro, then close the issue.

I need help - to repro this, some file fragment maybe..

@jairomartinezA Can you help to reproduce this?

I would assume that you know much better than I do what changes you did recently that could lead to this sort of changed behaviour. I may be wrong.

I also have neither the time nor the inclination to debug this for you. I will simply stop using the lexer until, if ever, this gets fixed.

If you can't repro, then close the issue.

There you have it.

I dont recall what I changed in lite lexers.

The only thing I can tell you that it's perfectly OK with 126.4.1 and not OK with 127 and all later versions.

I am now back to 126.4.1 but that will not be for long... I am coming to the conclusion that Cud is not for me. I have had this suspicion for a while now but the potential of Cud is immense -- such indeed that so far I was willing to try and find a way around any problems, bugs, breakages (esp the latter are a big problem for me: I just can't work with a program where with too many new versions I have to fight a problem that means I can't do what I wanted to do (ie edit some text) but first have to find out what and why something was broken. Again.).

So I have, reluctantly, to accept that Cud is just not for me. A great pity (and I really mean it) but that's life.

Thanks for that media file, I cannot repro yet but will try more.

I cannot repro with last beta version:

LexLite

found! minimap visible now- I have a repro.

it was a regression (reason: minimap in thread). updated release to 1.129.4.2. seems OK.

Tested an seems ok with minimap = True

thanks. closing...

Was this page helpful?
0 / 5 - 0 ratings