Skip to content

Commit

Permalink
Release v0.1.2
Browse files Browse the repository at this point in the history
* Update version badge and add package message for release v0.1.2.
* Create new tagged release to propagate the new syntax fixes to:
  * Broken Example Blocks.
  * Attributes List Lines.
  • Loading branch information
tajmone committed May 10, 2022
1 parent 7c38431 commit abd6b15
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ THE SOFTWARE.

<!-- badges -->

[Package badge]: https://img.shields.io/badge/version-0.1.1-orange "ST4-Asciidoctor is currently in Alpha stage"
[Package badge]: https://img.shields.io/badge/version-0.1.2-orange "ST4-Asciidoctor is currently in Alpha stage"
[Travis badge]: https://app.travis-ci.com/tajmone/ST4-Asciidoctor.svg?branch=master "Travis CI: EditorConfig validation status"
[Travis link]: https://app.travis-ci.com/github/tajmone/ST4-Asciidoctor
[ST badge]: https://img.shields.io/badge/Sublime_Text-4131-yellow?logo=sublime-text&logoColor=FF9800 "Sublime Text version used in development (click to visit download page)"
Expand Down
4 changes: 3 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"install": "messages/install.md"
"install": "messages/install.md",
"0.1.1": "messages/0.1.1.md",
"0.1.2": "messages/0.1.2.md"
}
41 changes: 41 additions & 0 deletions messages/0.1.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ST4-Asciidoctor v0.1.2
======================

Changes to the package...


Syntax Fixes
------------

How this update improves syntax highlighting AsciiDoc sources.


### Fixed Broken Example Blocks

This update fixes a bug in example blocks where curly quotes would result in
prematurely popping-out of the example context, causing the closing block
delimiter to be treated as a new opening example block, jeopardizing syntax
highlighting of the rest of the document.

This was the most annoying bug in the package, leading to documents
highlighting and scoping frequently breaking up.


### Attributes List Lines

The `attribute_list_line` context, which had been temporarily disabled while
disentangling the original syntax, has now been reintroduced.

Besides adding syntax highlighting for this element, its reintroduction also
fixes a known problem where block attributes-lists contents were triggering
false positive matches for inline quote elements, e.g. capturing as a
superscript delimiter the caret in the `cols` table attribute `<.^h` of the
following example:

[cols="<.^h,<.<a"]
|=============================

These false positives would jeopardize syntax highlighting the rest of the
document, or large portions of it. There was already a temporary workaround
to this problem, but it only handled table specific attributes-list, whereas
the `attribute_list_line` context should handle all edge-cases.

0 comments on commit abd6b15

Please sign in to comment.