absop / RainbowBrackets

A rainbow brackets plugin for SublimeText4.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin doesn't appear to support SublimeText 4.

madelaney opened this issue · comments

All,

I just installed this plugin for Sublime Text 4, and I cannot seem to get brackets brackets to show up. I tried with three different languages (Terraform, Groovy, and Rust) all of them don't seem to be working.

Here is an example of Terraform & Rust code without rainbow brackets.
no-rainbow-brackets-tf
no-rainbow-brackets-rust

  • Mike D.

I had the same issue with Sublime Text 4 and Typescript: Doesnt worked the default config so I had to add to my RainbowBracket.sublime-settings (plugin user settings), something like this:

New version working with SublimeText 4 126 and RainbowBrackets v4.2.0!
Follow the RainbowBrackets configuration template (example below featuring Monokai colors):

{
  "debug":false,
  "brackets":{
    "pairs":{
      "(":")",
      "[":"]",
      "{":"}"
    },
    "filetypes":{
      "default":{
        "opening":[
          "(",
          "[",
          "{"
        ],
        "ignored_scopes":[
          "comment",
          "string"
        ]
      },
      "ts":{
        "opening":[
          "(",
          "[",
          "{"
        ],
        "ignored_scopes":[
          "comment",
          "string"
        ],
        "extensions":[
          "ts"
        ]
      }
    }
  }
}

Before custom config:
image
After custom config:
image

Old configuration template

{
  "debug":false,
  "brackets":{
    "pairs":{
      "(":")",
      "[":"]",
      "{":"}"
    },
    "filetypes":{
      "default":{
        "opening":[
          "(",
          "[",
          "{"
        ],
        "ignored_scopes":[
          "comment",
          "string"
        ]
      },
      "ts":{
        "opening":[
          "(",
          "[",
          "{"
        ],
        "ignored_scopes":[
          "comment",
          "string"
        ],
        "extensions":[
          "ts"
        ]
      }
    }
  }
}

it occurs to me too, i just paste the setting codes on the preference-setting, and try to save the change, but the sublime tells me something wrong from the first line of these codes~
图片

it occurs to me too, i just paste the setting codes on the preference-setting, and try to save the change, but the sublime tells me something wrong from the first line of these codes~
![图片](https://user-images.githubusercontent.com/38887991/132233027-460089a8-3492-4c55-ad81-
32d1bc9dcad4.png)

Check the settings format file. Maybe a trailing comma is breaking the JSON format or something like that.

PD: Updated configuration example