https://bugs.kde.org/show_bug.cgi?id=424769
Bug ID: 424769
Summary: ruby highlighting bug thinking it is a heredoc for KDE
Kate editor
Product: kate
Version: 17.12.0
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: scripting
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
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
--
You are receiving this mail because:
You are watching all bug changes.