 			
 			# Underlined passage
 			name: "meta.request.ul.roff"
-			begin: "^([.'][ \t]*ul)(?: +(\\d+))?\\s*(.*?)\\s*?(\\\\\".*?)?\n"
+			begin: "^([.'][ \t]*ul)(?=[ \t\\\\]|$)(.*?)$"
 			end:   "([^\n ]+\n)"
 			patterns: [{ include: "$self" }]
 			beginCaptures:
 				1: {name: "entity.function.name.roff"}
-				2: {name: "variable.parameter.argument.roff"}
-				3: {name: "invalid.illegal.roff"}
-				4: {name: "comment.line.roff"}
+				2: {patterns: [{include: "#escapes"}]}
+				3: {name: "comment.line.roff"}
 			endCaptures:
 				0: {name: "markup.underline.roff"}
 		}]

name: "Roff"
scopeName: "text.roff"
firstLineMatch: "^\\.TH +(?:\\S+)"
fileTypes: [
	"1", "1b", "1c", "1has", "1in", "1m", "1s", "1x",
	"2",

	# Macro: .RB
	"macro-roman-bold":
		name: "markup.roman-bold.roff"
		begin: "^([.'][ \t]*RB)(?=[ \t\\\\]|$)"
		end:   "(?<!\\\\)(?=\n)"
		beginCaptures:
			1: {name: "entity.function.name.roff"}
