ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Bracket​Guard

by philippotto ST2/ST3

A Sublime Text 2/3 Plugin which immediately highlights incorrect brackets.

Labels brackets

Details

  • 1.0.11
  • github.​com
  • github.​com
  • 9 months ago
  • 41 minutes ago
  • 2 years ago

Installs

  • Total 17K
  • Win 9K
  • OS X 5K
  • Linux 3K
Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 3 8 12 15 13 5 24 11 7 10 24 12 12 29 9 10 15 9 10 10 8 3 4 8 11 7 8 6 3 3 7 14 8 4 7 7 3 11 11 4 12 10 1 17 9 19
OS X 3 5 5 9 5 6 4 1 5 1 10 6 11 5 3 3 7 8 6 3 10 0 3 6 1 6 8 1 2 7 5 5 4 3 9 5 1 5 4 7 4 6 2 6 7 7
Linux 2 4 4 1 0 9 4 5 1 4 6 5 5 4 1 1 2 2 4 6 4 1 1 5 5 4 3 6 1 2 3 3 0 3 0 2 0 4 0 7 3 2 3 2 4 3

Readme

Source
raw.​githubusercontent.​com

Sublime BracketGuard

A Sublime Text 2/3 Plugin which immediately highlights incorrect brackets. Balancing different kinds of brackets is a requirement which can be found in a broad set of programming languages. Nevertheless, Sublime Text does not highlight obviously wrong parenthesis. BracketGuard changes this.

A quick test: Can you tell me, whether the following code is valid?

I'm sure you can! You don't even have to know the language to see that the brackets are wrong. But how long did it take you to find the error? And how long did it take you to realize that there are two brackets wrong instead of only one?

With the help of BracketGuard you will spot syntactic bracket mistakes in a split second. Here is an example of how mistakes will be highlighted:

BracketGuard will highlight the first unexpected closing bracket and the corresponding opening bracket to which its counterpart is expected. After finding the first bracket error, BracketGuard will stop to check the rest of your code, because following mistakes cannot be determined due to the corrupt balancing.

Settings

The settings file includes two options:

  • file_length_threshold: Every file which has more characters than this threshold won't be checked automatically.
  • check_on_save: When set to true, the file will be (additionally) checked when saving the file.

Installation

Either use Package Control and search for BracketGuard or clone this repository into the Sublime Text “Packages” directory.

License

MIT © Philipp Otto