Skip to content

Commit

Permalink
Fix content align bug (#544)
Browse files Browse the repository at this point in the history
* Fix content align bug

* Fix spelling
  • Loading branch information
facelessuser authored Feb 21, 2020
1 parent fed8286 commit 3263cb4
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 32 deletions.
5 changes: 3 additions & 2 deletions .pyspelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ matrix:
- title
- alt
ignores:
- ':is(code, pre, a.magiclink, span.keys)'
- ':is(.MathJax_Preview, .md-nav__link, .md-footer-custom-text, .md-source__repository, .headerlink, .md-icon)'
- 'code, pre, a.magiclink, span.keys'
- '.MathJax_Preview, .md-nav__link, .md-footer-custom-text, .md-source__repository, .headerlink, .md-icon'
- '.md-footer-social__link'
- pyspelling.filters.url:

- name: markdown
Expand Down
62 changes: 34 additions & 28 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,107 +1,113 @@
# BracketHighlighter 2.27.7
# BracketHighlighter

## 2.27.8

- **FIX**: Content align bug.

## 2.27.7

- **FIX**: Update support to include OCaml comment support.
- **FIX**: Fix avoiding round brackets in shell case statements.
- **FIX**: Thread adjustments that allow BracketHighlighter to go completely idle when Sublime Text is idle.
- **FIX**: Fix Ruby interpolated strings.
- **FIX**: Fix optional tags for `option` and `optgroup`.

# BracketHighlighter 2.27.6
## 2.27.6

- **FIX**: Fix issue where HTML style attribute quotes where not highlighted due to syntax definition changes.
- **FIX**: Add support for `@` in HTML attributes.

# BracketHighlighter 2.27.5
## 2.27.5

- **FIX**: Fix issue where bracket context code blocks in popups sometimes are recognized as Jinja2 template variables.
- **FIX**: Fix internal clone view cleanup.
- **FIX**: Fix bad clone reference.
- **FIX**: `on_hover` should not occur if `bracket_highlighter.ignore` is set in the view.

# BracketHighlighter 2.27.4
## 2.27.4

- **FIX**: Avoid targeting common `HERDOC` syntax with angle brackets. #482

# BracketHighlighter 2.27.3
## 2.27.3

- **FIX**: Selecting "no threshold" search from popup quickly reverts back to unmatched.
- **FIX**: Backtick string support extended to JavaScript.

# BracketHighlighter 2.27.2
## 2.27.2

- **FIX**: `C#` interpolated strings !468.
- **FIX**: Fix C/C++ preprocessor highlighting !474.
- **FIX**: Only highlight the keyword in C/C++ preprocessors af22600cd23bd3c15a1a0f6fc54041e6d96b3dd3.

# BracketHighlighter 2.27.1
## 2.27.1

- **FIX**: Fix Lua loops by avoiding `while` and `from` and just highlighting `do` #466.

# BracketHighlighter 2.27.0
## 2.27.0

- **NEW**: Add option to always show the bracket popup on bracket hover #457.
- **FIX**: Fix clone views not properly supported #454.
- **FIX**: Improvements to Ruby conditional matching #452.

# BracketHighlighter 2.26.0
## 2.26.0

- **NEW**: Added new configuration `user_bracket_styles` to allow a user to override specific rules or just part of a
specific rule instead of copying all of `bracket_styles` #448.
- **NEW**: Add colorization with region-ish scopes for Sublime builds 3148+ #448.
- **FIX**: Ruby issue with conditionals immediately followed after return keyword #425.
- **FIX**: PHP issue for arrows (`$var->prop`) #446.

# BracketHighlighter 2.25.2
## 2.25.2

- **FIX**: Update tag attribute pattern.
- **FIX**: Add SVG self closing tags.
- **FIX**: Temporarily use `thin_underline` style to mitigate issue #443.

# BracketHighlighter 2.25.1
## 2.25.1

- **FIX**: Update dependencies.

# BracketHighlighter 2.25.0
## 2.25.0

- **FIX**: Quick start image links.
- **FIX**: Allow Markdown related brackets to work in Markdown Extended.
- **FIX**: Allow `HTML (Jinja2)` to work in HTML.
- **NEW**: Add Markdown `` ` `` to swap and wrap.
- **NEW**: Add commonly used commands to the command panel (documents and settings) #419.

# BracketHighlighter 2.24.2
## 2.24.2

- **FIX**: Avoid things like `->` in PHP due to new Sublime default syntax changes #417.
- **FIX**: Add support for Python f-strings.

# BracketHighlighter 2.24.1
## 2.24.1

- **FIX**: Random regions failure.
- **FIX**: Lua keyword match at beginning of line.

# BracketHighlighter 2.24.0
## 2.24.0

- **NEW**: Popup/Phantom support limited to 3124+ moving forward to prepare for `mdpopups` 2.0 that will drop legacy
support for old, early implementation of popups and phantoms.
- **NEW**: No longer try and force dependency updates. Leave it up to Package Control (whether they do it or not).
- **NEW**: CSS adjustments to popups.
- **FIX**: Fix tag matching corner case #409.

# BracketHighlighter 2.23.3
## 2.23.3

- **FIX**: Fix error `ImportError: No module named 'yaml'` #400.

# BracketHighlighter 2.23.2
## 2.23.2

- **FIX**: Add backtick quote support for ruby and shell script syntaxes d884e8ab7aa69477c1af5d29cef24589efaf2b8e.
- **FIX**: Fix console noise on global disable #397.

# BracketHighlighter 2.23.1
## 2.23.1

- **FIX**: Rule position - zero is a valid position #387.
- **FIX**: Protect against race condition due to Sublime bug #390.

# BracketHighlighter 2.23.0
## 2.23.0

- **NEW**: Add links in menu to documentation and issues.
- **NEW**: Provide new local quickstart guide from the menu.
Expand All @@ -112,45 +118,45 @@ support for old, early implementation of popups and phantoms.
- **NEW**: New XML tag mode and better XHTML mode.
- **NEW**: Better special tag logic which handles optional tags, void tags, and self closing tags better. #384

# BracketHighlighter 2.22.1
## 2.22.1

- **FIX**: Fix changelog links

# BracketHighlighter 2.22.0
## 2.22.0

- **NEW**: Manual command to show offscreen bracket popup. Can be invoked when cursor is anywhere between target
bracket #378.
- **NEW**: When selecting the "Match brackets without threshold" link on the unmatched bracket popup, reshow the
offscreen popup.
- **NEW**: Add support for "SINUMERIK840D" language #379.

# BracketHighlighter 2.21.6
## 2.21.6

- **FIX**: Fix PHP conditional #366.
- **FIX**: No line wrapping in code snippets in popups.

# BracketHighlighter 2.21.5
## 2.21.5

- **FIX**: Fix a break caused by 2.21.4 #364.
- **FIX**: Fix CSS in changelog

# BracketHighlighter 2.21.4
## 2.21.4

- **FIX**: Changelog command now works for older ST3 versions.

# BracketHighlighter 2.21.3
## 2.21.3

- **FIX**: Don't fail if mdpopups was not installed on old Sublime version.

# BracketHighlighter 2.21.2
## 2.21.2

- **FIX**: Fix changelog typo :).

# BracketHighlighter 2.21.1
## 2.21.1

- **NEW**: Message to not freak people out :).

# BracketHighlighter 2.21.0
## 2.21.0

- **NEW**: Require mdpopups 1.9.0.
- **NEW**: New changelog command.
Expand Down
2 changes: 1 addition & 1 deletion bh_regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def save_content_regions(self, left, right, bracket, lines):
tabs += 1
elif char != " ":
# Calculate column on first non-whitespace character
remainder = count & tab_size
remainder = count % tab_size
tab_aligned = int(count / tab_size)
if remainder and tabs:
# Index of first non-whitespace character.
Expand Down
2 changes: 1 addition & 1 deletion support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import webbrowser
import re

__version__ = "2.27.7"
__version__ = "2.27.8"
__pc_name__ = 'BracketHighlighter'

CSS = '''
Expand Down

0 comments on commit 3263cb4

Please sign in to comment.