Skip to content

Commit

Permalink
Remove Redundant Escape Rules
Browse files Browse the repository at this point in the history
Since the last commit introduced full coverage of both escaping and
double-escaping in the syntax, remove the previous escape definition
by @polyglot-jones, which is now redundant.
  • Loading branch information
tajmone committed Feb 3, 2024
1 parent 9a1d968 commit 2ff7a2e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Syntaxes/Asciidoctor.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ contexts:
- include: attribute_reference
- include: entity_number
- include: entity_name
- include: escape
# - include: replacement
# - include: macro_pass
- include: macro
Expand Down Expand Up @@ -459,16 +458,6 @@ contexts:
- match: (?<!\\)&([a-zA-Z][a-zA-Z0-9]*);
scope: constant.character.entity.xml.asciidoc

#########
# ESCAPES
#########
# In AsciiDoc, certain characters need to be escaped with a backslash.
# TODO This might not be a complete list of characters need to be escaped.

escape:
- match: \\(?=[-`*_#+.!(){}\[\]\\>:])
scope: constant.character.escape.asciidoc

###################
# FLOW INDEXTERMS
###################
Expand Down

0 comments on commit 2ff7a2e

Please sign in to comment.