jmzambon / libreoffice-code-highlighter

Code snippet highlighter for LibreOffice.
https://extensions.libreoffice.org/en/extensions/show/5814
Other
75 stars 5 forks source link

Ruby: Standalone numbers will be deleted #45

Open nerdcraft-muc opened 8 hours ago

nerdcraft-muc commented 8 hours ago

If a number (without any additional code) stands alone in a line, it will be deleted by the code highlighter. At least for Ruby.

jmzambon commented 7 hours ago

Hi,

Thank for reporting. Could you provide a sample code? By the way, I don"t know Ruby and I need to understand how numbers work when standing alone in a line: could you give me any tip on that? Probably that number is seen as part of a non-code line numbering.

nerdcraft-muc commented 7 hours ago

Hi,

here is a simple example:


def meth 5 end

puts meth


after code highlighting, the "5" ist gone!

Best regards

Eric.

-- Prof. Dr.rer.nat. Eric-Roger Brücklmeier

Erich-Kästner-Straße 21 80796 München Tel.: +49 89 55065971

jmzambon commented 4 hours ago

Thanks again, this was a weird issue. A new version is available here: https://github.com/jmzambon/libreoffice-code-highlighter/raw/refs/heads/master/codehighlighter2.oxt.

nerdcraft-muc commented 4 hours ago

Oh, Thank you very much!

Eric.

Prof. Dr.rer.nat. Eric-Roger Brücklmeier

Erich-Kästner-Straße 21 80796 München Tel.: +49 89 55065971