CudaText-addons / cuda_fountain_helper

CudaText plugin: Fountain Helper
0 stars 0 forks source link

Fixing colours in Fountain lexer #2

Closed mangobait closed 7 years ago

mangobait commented 7 years ago

Notice in the attachment that the highlighted line is the same colour as the dialogue above it. Only the line directly under a character is dialogue (unless joined by character action/description in parentheses).

For example:

LITTLE BRAVE (confused) <--character action Your finger? <--dialogue

Edward slips his ring off. <--character action

Right now, "Your finger?" and "Edward slips his ring off" are the same colour. But "(confused)" and "Edward slips his ring off" should be same. Both are description.

2017-05-20 2 44 01
Alexey-T commented 7 years ago

Need to fix the lexer.

Alexey-T commented 7 years ago

Tried, saw limitation of lexer engine: cannot catch emptyline, and so 'action' after. ops.

mangobait commented 7 years ago

Re: our discussion of invisibles: can't you capture an instance of two RETURN characters in a row? That becomes an empty line. No?

Alexey-T commented 7 years ago

lexer reg-expression engine cannot "catch" reg-ex "^$" (empty line). It can catch "\n\n" but it wont help.

Alexey-T commented 7 years ago

ops, regex "\n\n" helps..... good. Trying to fix.

Alexey-T commented 7 years ago

Better look

fo-new

Install F lexer again, pls (AddonManager)

mangobait commented 7 years ago

No change. It still has lines of description the same colour as lines of dialogue.

Question: is "Update..." in AddOns the same as "Install..." for reinstalling? I tried both and no change to the above.

Alexey-T commented 7 years ago

Pls try Addonmanager- install- Fountain LEXER- it must reinstall lexer

Alexey-T commented 7 years ago

I checked lexer, it shows dlg lines like on picture

Yes, "Update" is same as "Install"

mangobait commented 7 years ago

Yes, works well now.

Alexey-T commented 7 years ago

Ok, good..