Fix incorrect regexs for string in backend highlighters
ClosedPublic

Authored by sirgienko on Apr 8 2018, 9:12 PM.

Details

Summary

Now string highlighter regex highlighte two strings, standing neary, as one string, that incorrect. So it fix it.

Test Plan
  1. Open Octave, Scilab, Lua, Sage session, write '3', '4', '5'
  2. Make sure, that string highlighting wrong.
  3. Appy the patch
  4. Test again and check, that all okay

Diff Detail

Repository
R55 Cantor
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sirgienko created this revision.Apr 8 2018, 9:12 PM
Restricted Application added a project: KDE Edu. · View Herald TranscriptApr 8 2018, 9:12 PM
Restricted Application added a subscriber: KDE Edu. · View Herald Transcript
sirgienko requested review of this revision.Apr 8 2018, 9:12 PM
sirgienko edited the test plan for this revision. (Show Details)Apr 8 2018, 9:15 PM

@asemke, Should I try to get KDE Devlepoer account to send directly to repository such minor changes, like this?
Or you accepting small patches like this don't problem for you?

sirgienko updated this revision to Diff 31755.Apr 9 2018, 5:57 PM
sirgienko retitled this revision from Fix incorrect regex for string in octave highlighter to Fix incorrect regexs for string in backend highlighters.
sirgienko edited the test plan for this revision. (Show Details)

Correct string regexs in another backends.

sirgienko updated this revision to Diff 31756.Apr 9 2018, 6:00 PM

Saving previous code aligment

I don't exactly understand the problem you're trying to fix. Octave session for me without your patch:


What exactly is wrong here?

I don't exactly understand the problem you're trying to fix. Octave session for me without your patch:


What exactly is wrong here?

Commas not a part of string, but highlighter as string. It's wrong, isn't it?

@asemke, Should I try to get KDE Devlepoer account to send directly to repository such minor changes, like this?
Or you accepting small patches like this don't problem for you?

You showed already a lot of interest in Cantor and good understanding of the code and architecture. If you plan to further contribute here it makes sense to apply for a KDE account. But let's maybe still go via the review process at the beginning. Don't push directly without a review. Even small fixes can cause big troubles. Doing review for small patches is ok for me, don't worry about this.

I don't exactly understand the problem you're trying to fix. Octave session for me without your patch:


What exactly is wrong here?

Commas not a part of string, but highlighter as string. It's wrong, isn't it?

Sorry, I over looked the highlighted commas. Your patch is ok.

This revision was not accepted when it landed; it landed in state Needs Review.Apr 11 2018, 8:03 PM
This revision was automatically updated to reflect the committed changes.