Skip to content

Commit

Permalink
Merge branch 'asciidoctor:master' into local-includes
Browse files Browse the repository at this point in the history
  • Loading branch information
alaindresse authored Sep 26, 2024
2 parents d6b49aa + 6a69acb commit 44f59ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/features/antora/antoraSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import * as nls from 'vscode-nls'
import ContentCatalog from '@antora/content-classifier/content-catalog'
import { getWorkspaceFolder } from '../../util/workspace'
import { dir, exists } from '../../util/file'
import * as contentClassifier from '@antora/content-classifier'
const classifyContent = contentClassifier.default || contentClassifier

const MAX_DEPTH_SEARCH_ANTORA_CONFIG = 100
const localize = nls.loadMessageBundle()
Expand Down Expand Up @@ -316,10 +318,6 @@ export async function getAntoraDocumentContext (textDocumentUri: Uri, workspaceS
files,
}
})))
let classifyContent = await import('@antora/content-classifier')
if ('default' in classifyContent) {
classifyContent = classifyContent.default // default export
}
const contentCatalog = await classifyContent({
site: {},
}, contentAggregate)
Expand Down
4 changes: 2 additions & 2 deletions syntaxes/Asciidoctor.json
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@
"patterns": [
{
"name": "markup.table.asciidoc",
"begin": "^(\\|===)$",
"begin": "^(\\|===)\\s*$",
"beginCaptures": {
"0": {
"name": "markup.table.delimiter.asciidoc"
Expand All @@ -1998,7 +1998,7 @@
"include": "#tables-includes"
}
],
"end": "^(\\1)$",
"end": "^(\\1)\\s*$",
"endCaptures": {
"0": {
"name": "markup.table.delimiter.asciidoc"
Expand Down

0 comments on commit 44f59ff

Please sign in to comment.