Menu

#240 Ruby highlighter does not recognize keyword 'unless'

Undefined
open
nobody
None
Bug_Report
2015-10-21
2015-10-21
Ronald
No

CodeBlocks 13.12, running on Windows:

In Highlight-mode for Ruby, the token 'unless' is not recognized as a keyword, and not highlighted in the same way as, say, 'def' or 'end'.

Example code showing the bug:

unless testmethod_name = ARGV[0]
puts "First argument must be the name for the test. Valid names are: #{valid_testnames.join(',')}"
exit
end

In this example, 'end' is highlighted as keyword, but 'unless' is not.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.