Bug 424769 - ruby highlighting bug thinking it is a heredoc for KDE Kate editor
Summary: ruby highlighting bug thinking it is a heredoc for KDE Kate editor
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kate
Classification: Applications
Component: scripting (show other bugs)
Version: 17.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-28 22:07 UTC by arcusaream
Modified: 2020-07-30 03:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arcusaream 2020-07-28 22:07:13 UTC
SUMMARY
Using the 2010 10-06 version...
.rb ruby files are highlighted incorrectly. It seems that it thinks that after the 127 is a heredoc ... although heredocs are supposed to have a "-" sing like this:
... <<-name_unique
heredoc stuff
name_unique

... also, I am using a number. If I put a space between the "<<"
 and the number things start working.

It is just the coloring that is wrong. Here is an example:

def pre_thing
    variable_one  = 0
    #Other variables here...

    data = (mark<<127 | paul <<124 | thing_two<<0 | thing_three<<116 | thing_four<<96 | plane)
    variable_prog(:yelp, variable_one, data1, data_two)

    write_record(:yelp, "#{ENV['ENV_VAR']}/file/file_name/write_funct", 200, 0)
    enable(:yelp, 1, 0)
  end

  def run
    start(:yelp, 0)
    common_run
    #@sim.sleep(sleep_again('Sleep') || '10')
  end
end
#but:
127
#Now the color is good!
           Now the color is good!



STEPS TO REPRODUCE
1. Fix ruby heredoc coloring bug as described above
2. 
3. 

OBSERVED RESULT

Almost everything turns green after the "127" from the example above.
EXPECTED RESULT
The colors to be maintained.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Yes
(available in About System)
KDE Plasma Version: Kate version. not found
KDE Frameworks Version: not found

Qt Version: 4.8.7
KDE development platform: 4.14.8
kate: 3.14.8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-07-29 22:20:43 UTC
You appear to be using KDE4 era software which is more than 10 years old. I"m afraid this version of anything is no longer supported. You might consider upgrading to Plasma5. It's great!
Comment 2 arcusaream 2020-07-30 03:05:37 UTC
Sounds great, thanks!

-----Original Message-----
From: Nate Graham <bugzilla_noreply@kde.org> 
Sent: Wednesday, July 29, 2020 4:21 PM
To: arcusaream@comcast.net
Subject: [kate] [Bug 424769] ruby highlighting bug thinking it is a heredoc for KDE Kate editor

https://bugs.kde.org/show_bug.cgi?id=424769

Nate Graham <nate@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |RESOLVED
                 CC|                            |nate@kde.org
         Resolution|---                         |UNMAINTAINED

--- Comment #1 from Nate Graham <nate@kde.org> --- You appear to be using KDE4 era software which is more than 10 years old. I"m afraid this version of anything is no longer supported. You might consider upgrading to Plasma5. It's great!

--
You are receiving this mail because:
You reported the bug.