[go: up one dir, main page]

Menu

#400 Pascal Syntax Highlighting fault

v4.4
closed
nobody
None
v4.4
5
2024-02-06
2019-05-13
No

Hello.
I installed right now openSUSE Leap 15.0 with KDE/Plasma desktop. The default version of joe on this system is 4.4. I really love joe, I use it since at least 10 years to write my FreePascal source.
What I figured out is:
On Leap 42.3 is an older 3.7 version of joe installed. Everything in Pascal syntax highlighting is mostly OK.
On joe 4.4, Pascal syntax highlighting is not working correctly. Here a Double Quote triggers a syntax highlighting even when the " is located inside a Single line comment //.

This is very nasty. Can I fix this by myself, or is this a bug?

Related

Bugs: #400

Discussion

  • John J. Jordan

    John J. Jordan - 2019-05-13

    Try changing reset to idle in the following, found in pascal.jsf (probably in /usr/share/joe/syntax):

    :line_comment Comment
        *       line_comment
        "\n"        reset
    

    If this doesn't work, can you send a screenshot or provide an example? I found this issue in the highlighter but it's not specific to double-quotes, and I can't reproduce this.

     
    • Rainer Hantsch

      Rainer Hantsch - 2019-05-13

      Well,

      I found a fix right now. It is a sledge hammer method and for sure not in the
      manner of uptodate software, but it works...

      Itried first an upgrade to joe 4.6. Exactly the same problem. So this is
      definitely combined with version 4.x (in general?).

      I then threw out the entire joe (uninstalled it completely) and installed
      versio 3.7 RPM from openSuSE Leap 42.3 (I extracted it from its ISO).
      Works perfectly as it should.
      So I locked now updates to joe, it is now frozen in this version.

      But I will install Leap 15.0 also in a VM on my Leap15.0 host, to do tests.
      Then I will (again) test joe and can also play around with it without
      influencing my production system.

      Am Montag, 13. Mai 2019, 18:37:55 CEST schrieben Sie:

      Try changing reset to idle in the following, found in pascal.jsf
      (probably in /usr/share/joe/syntax):

      ```

      :line_comment Comment

      • line_comment
        "\n" reset
        ```

      If this doesn't work, can you send a screenshot or provide an example? I
      found this issue in the highlighter but it's not specific to double-quotes,
      and I can't reproduce this.


      ** [bugs:#400] Pascal Syntax Highlighting fault**

      Status: open
      Group: v4.4
      Created: Mon May 13, 2019 02:03 PM UTC by Rainer Hantsch
      Last Updated: Mon May 13, 2019 02:03 PM UTC
      Owner: nobody

      Hello.
      I installed right now openSUSE Leap 15.0 with KDE/Plasma desktop. The
      default version of joe on this system is 4.4. I really love joe, I use it
      since at least 10 years to write my FreePascal source. What I figured out
      is:
      On Leap 42.3 is an older 3.7 version of joe installed. Everything in Pascal
      syntax highlighting is mostly OK. On joe 4.4, Pascal syntax highlighting is
      not working correctly. Here a Double Quote triggers a syntax highlighting
      even when the " is located inside a Single line comment //.

      This is very nasty. Can I fix this by myself, or is this a bug?


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/joe-editor/bugs/400/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --

      mit freundlichen Grüßen

      Ing. Rainer Hantsch
      (Firmeninhaber)

      --

      ING. RAINER HANTSCH - Hardware & Software
      Khunngasse 21/20
      A-1030 Wien
      *** Austria ***

      Tel.: +43-1-7988538-0 Fax : +43-1-7988538-18
      Mobil: +43-664-9194382
      UID-Nr: ATU11134002

       

      Related

      Bugs: #400

  • Rainer Hantsch

    Rainer Hantsch - 2019-05-13

    I can do even more. I can supply you a pascal source you can open with different versions of joe and compare.
    Some settings I usually change in /etc/joe/...
    1. In /etc/joe/ftyperc I add .pp right below every .p (in pascal sections), because my files are ending in .pp.
    2. In joerc I edit this lines:
    Default local options
    -highlight
    -istep 2
    -tab 2
    -indentc 9

    Scroll then up/down through the source file and watch the colors. Starting with line 799 things go wrong in joe 4.x, while in joe 3.7 everything looks correct.

     
    • John J. Jordan

      John J. Jordan - 2019-05-13

      I think the issue is that >3.8, this is recognized as a puppet file, which shares the extension .pp. You should remove this entry from your /etc/joe/ftyperc. Clearly, it is taking precedence over the entry that you added. It's probably worth adding a warning if we see duplicate extensions.

       
  • John J. Jordan

    John J. Jordan - 2024-02-06
    • status: open --> closed
     
  • John J. Jordan

    John J. Jordan - 2024-02-06

    This is just due to the extension being used for puppet.

     

Log in to post a comment.