Skip to content

Instantly share code, notes, and snippets.

@egoexpress
Last active March 2, 2018 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egoexpress/03e47ce1e324354a3de08b380aff6822 to your computer and use it in GitHub Desktop.
Save egoexpress/03e47ce1e324354a3de08b380aff6822 to your computer and use it in GitHub Desktop.
Visual Studio Code Asciidoctor-PDF task (with problem matcher)
{
"version": "2.0.0",
"tasks": [
{
"label": "Build document",
"type": "shell",
"command": "asciidoctor-pdf -r asciidoctor-diagram --out-file outfile.pdf infile.adoc",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "dedicated"
},
"problemMatcher": {
"owner": "asciidoc",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^asciidoctor:\\s+(WARNING|ERROR):\\s+(.*):\\s+line\\s+(\\d+):\\s+(.*)$",
"column": 0,
"severity": 1,
"file": 2,
"line": 3,
"message": 4
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment