solmateus / .dotfiles

$HOME sweet $HOME
MIT License
0 stars 0 forks source link

Syntax highlighting for perl blocks starting with '§' and '~' will not go back to default kakoune script highlighting after the block ends. #3

Open solmateus opened 2 months ago

solmateus commented 2 months ago

Issue Description

When you write a perl block with perl %§ or perl %~ syntax highlighting works withing the block as expected; but after that block ends, the rest of the file still has perl highlighting.

Steps to Reproduce

  1. Latest commit.
  2. Write the following at the end of your kakrc:
    
    perl %{
    print 'echo works as normal'
    }

perl %~ print 'echo within this block, syntax highlighting works fine as well' ~ # everything after this point still has perl syntax highlighting

perl %{ # for instance, this perl keyword isn't colored print 'everytthin' }

this hook isn't properly highlighted

hook -once global WinCreate .* %{ echo "testing" }

if you type $a, it will be colored like it would in perl.

$a # uncomment this to try it ^

solmateus commented 2 months ago

Issue originates in the main oyster.kak module. Particularly lines 15 and 17 of said file.