Skip to content

Commit

Permalink
minor edit to allow backticks in section titles
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmith-n4 committed Feb 12, 2018
1 parent f97f4e3 commit 087a9d0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.cache
*.pyc
*.sublime-workspace
.DS_Store
12 changes: 6 additions & 6 deletions Syntaxes/Asciidoctor.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -1080,42 +1080,42 @@ repository:

title_level_0:
name: markup.heading.level.0.asciidoc
match: ^(=) (\w.*)$\n?
match: ^(=) (`?\w.*)$\n?
captures:
'1': {name: punctuation.definition.heading.asciidoc}
'2': {name: entity.name.section.asciidoc}

title_level_1:
name: markup.heading.level.1.asciidoc
match: ^(==) (\w.*)$\n?
match: ^(==) (`?\w.*)$\n?
captures:
'1': {name: punctuation.definition.heading.asciidoc}
'2': {name: entity.name.section.asciidoc}

title_level_2:
name: markup.heading.level.2.asciidoc
match: ^(===) (\w.*)$\n?
match: ^(===) (`?\w.*)$\n?
captures:
'1': {name: punctuation.definition.heading.asciidoc}
'2': {name: entity.name.section.asciidoc}

title_level_3:
name: markup.heading.level.3.asciidoc
match: ^(====) (\w.*)$\n?
match: ^(====) (`?\w.*)$\n?
captures:
'1': {name: punctuation.definition.heading.asciidoc}
'2': {name: entity.name.section.asciidoc}

title_level_4:
name: markup.heading.level.4.asciidoc
match: ^(=====) (\w.*)$\n?
match: ^(=====) (`?\w.*)$\n?
captures:
'1': {name: punctuation.definition.heading.asciidoc}
'2': {name: entity.name.section.asciidoc}

title_level_5:
name: markup.heading.level.5.asciidoc
match: ^(======) (\w.*)$\n?
match: ^(======) (`?\w.*)$\n?
captures:
'1': {name: punctuation.definition.heading.asciidoc}
'2': {name: entity.name.section.asciidoc}
12 changes: 6 additions & 6 deletions Syntaxes/Asciidoctor.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2382,7 +2382,7 @@ Examples:
</dict>
</dict>
<key>match</key>
<string>^(=) (\w.*)$\n?</string>
<string>^(=) (`?\w.*)$\n?</string>
<key>name</key>
<string>markup.heading.level.0.asciidoc</string>
</dict>
Expand All @@ -2402,7 +2402,7 @@ Examples:
</dict>
</dict>
<key>match</key>
<string>^(==) (\w.*)$\n?</string>
<string>^(==) (`?\w.*)$\n?</string>
<key>name</key>
<string>markup.heading.level.1.asciidoc</string>
</dict>
Expand All @@ -2422,7 +2422,7 @@ Examples:
</dict>
</dict>
<key>match</key>
<string>^(===) (\w.*)$\n?</string>
<string>^(===) (`?\w.*)$\n?</string>
<key>name</key>
<string>markup.heading.level.2.asciidoc</string>
</dict>
Expand All @@ -2442,7 +2442,7 @@ Examples:
</dict>
</dict>
<key>match</key>
<string>^(====) (\w.*)$\n?</string>
<string>^(====) (`?\w.*)$\n?</string>
<key>name</key>
<string>markup.heading.level.3.asciidoc</string>
</dict>
Expand All @@ -2462,7 +2462,7 @@ Examples:
</dict>
</dict>
<key>match</key>
<string>^(=====) (\w.*)$\n?</string>
<string>^(=====) (`?\w.*)$\n?</string>
<key>name</key>
<string>markup.heading.level.4.asciidoc</string>
</dict>
Expand All @@ -2482,7 +2482,7 @@ Examples:
</dict>
</dict>
<key>match</key>
<string>^(======) (\w.*)$\n?</string>
<string>^(======) (`?\w.*)$\n?</string>
<key>name</key>
<string>markup.heading.level.5.asciidoc</string>
</dict>
Expand Down

0 comments on commit 087a9d0

Please sign in to comment.