Skip to content

Commit 924ad5c

Browse files
committed
Require index terms to be on one line
1 parent e6ba75c commit 924ad5c

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

AsciiDoc.sublime-syntax

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ contexts:
300300
flow-index-terms:
301301
- match: \\\((?=\()
302302
scope: constant.character.escape.asciidoc
303-
- match: \({2}
303+
- match: \({2}(?=.+\){2})
304304
scope: punctuation.definition.reference.begin.asciidoc
305305
push: flow-index-term-body
306306
- match: \b(indexterm2)(:)(\[)
@@ -328,7 +328,7 @@ contexts:
328328
concealed-index-terms:
329329
- match: \\\((?=\(\()
330330
scope: constant.character.escape.asciidoc
331-
- match: \({3}
331+
- match: \({3}(?=.+\){3})
332332
scope: punctuation.definition.reference.begin.asciidoc
333333
push: concealed-index-term-body
334334
- match: \b(indexterm)(:)(\[)

tests/syntax_test_git_docs.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,13 @@ All usual spellings for Boolean value `true` are taken as `normal`
257257
and `false` as `no`.
258258
This variable can be overridden with the -u|--untracked-files option
259259
of linkgit:git-status[1] and linkgit:git-commit[1].
260+
261+
*** If unset (i.e. `offset & ((uint64_t)1<<63) == 0`), the offset
262+
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.paragraph.list.asciidoc
263+
// ^^^ punctuation.definition.list_item.asciidoc
264+
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ markup.raw.inline.asciidoc
265+
// ^ punctuation.definition.raw.begin.asciidoc
266+
punctuation.definition.raw.end.asciidoc
267+
(relative to the beginning of the `.bitmap` file) at which the
268+
pseudo-merge bitmap for this commit can be read. This indicates
269+
only a single pseudo-merge bitmap contains this commit.

0 commit comments

Comments
 (0)