 	"substitution-definition":
 		patterns: [
 
-			# Image substitution
+			# Image substitution – “.. |foo| image:: ./path/to/image.png”
 			{
 				name: "meta.substitution-definition.image.restructuredtext"
 				begin: "^(\\s*)(\\.\\.)\\s(\\|)(?=\\S)([^\\|]+)((?<=\\S)\\|)\\s+(image)(::)\\s*(\\S+)"





	# Intepreted text: Multiline with role
	"interpreted-block":
		name: "markup.other.command.restructuredtext"
		contentName: "string.other.interpreted.restructuredtext"
		begin: "(:)([-A-z0-9:_.]*?)(:)(`)"
		end:   "(`)"
		beginCaptures:
			1: name: "punctuation.definition.intepreted.restructuredtext"
			2: name: "entity.name.role.restructuredtext"
			3: name: "punctuation.definition.intepreted.restructuredtext"
			4: name: "punctuation.definition.intepreted.restructuredtext"
		endCaptures:
			1: name: "punctuation.definition.intepreted.restructuredtext"
		patterns: [
			{include: "#escape"}
			
			# Manpage reference: `ls(1)`
			name: "meta.manpage.link.inline.restructuredtext"
			match: "(?<=:manpage:`)\\G([-.\\w]+)(\\()(\\d+)(\\))"
			captures:
				1: name: "markup.bold.manpage-name.restructuredtext"
				2: name: "punctuation.definition.round.bracket.begin.restructuredtext"
				3: name: "constant.numeric.integer.restructuredtext"
				4: name: "punctuation.definition.round.bracket.begin.restructuredtext"
		]


	# Intepreted text: Single line
	"interpreted-line":
		name: "markup.other.command.restructuredtext"

			{include: "#escape"}
			{include: "#emphasis"}
			{include: "#link-definition"}
			{include: "#role"}
			{include: "#substitution"}
			{include: "#literal"}
			{include: "#interpreted-line"}
			{include: "#anonymous-link"}
			{include: "#link-reference"}
			{include: "#interpreted-block"}
			{include: "#footnotes"}
			{include: "#citations"}
		]
