absop / RainbowBrackets

A rainbow brackets plugin for SublimeText4.
MIT License
58 stars 8 forks source link

Plugin doesn't appear to support SublimeText 4. #18

Open madelaney opened 3 years ago

madelaney commented 3 years ago

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

hernanBeiza commented 3 years ago

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"
        ]
      }
    }
  }
}
ChellyL commented 3 years ago

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~ 图片

hernanBeiza commented 3 years ago

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~ 图片

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

PD: Updated configuration example