facelessuser / BracketHighlighter

Bracket and tag highlighter for Sublime Text
https://facelessuser.github.io/BracketHighlighter/
1.75k stars 245 forks source link

If-End blocks in Lua are not highlighted #599

Closed the-overdriven closed 2 years ago

the-overdriven commented 2 years ago

Description

If-End blocks in Lua don't seem to be highlighted. Probably it's not a bug, rather a shortcoming. Which would make this ticket a feature request.

I'm sure the plugin is installed and working, since it seems to be highlighting beginning and ending of brackets in one line If-End statements, so it's doing something.

For comparison, see how Webstorm with EmmyLua plugin is very clearly highlighting "if" and "end" here: webstorm with emmylua

This is what I see in Sublime Text with BracketHighlighter plugin when I move cursor at "if" position: sublimetext with brackethighlighter

Sublime Text is also not reindenting the code correctly, pushing end statements further to the right side (so it's not in one line with If), but not sure if it's this plugin fault or ST's.

Support Info

Steps to Reproduce Issue

  1. Copy and paste my code example
  2. Move the cursor at first "if"
  3. "end" is not highlighted
facelessuser commented 2 years ago

Working here. Maybe there is some other context in your code throwing it off 🤷🏻 .

Screen Shot 2022-03-08 at 4 02 05 PM
the-overdriven commented 2 years ago

I've downloaded portable Sublime Text (same version), opened it, installed BracketHighlighter and it seems to highlight if-end blocks now. What's even stranger, my non-portable seems to be automatically fixed as well. One would thought portable version should have no affect on installed ST instance... but anyhow I'm glad it's fixed. Thanks for instant feedback.