@namespace Basic
{
  @search @pattern GUID = Word(8) + [3 '-' + Word(4)] + '-' + Word(12);
}

@require "GUID.np";

@namespace Basic
{
  @search @pattern GUID-in-Braces = '{' + GUID + '}';
}

----------------------------------------------------

[
	["keyword", "@namespace"],
	["namespace", "Basic"],

	["operator", "{"],

	["keyword", "@search"],
	["keyword", "@pattern"],
	["pattern", [
		["pattern-name", "GUID"]
	]],
	["operator", "="],
	["standard-pattern", [
		["standard-pattern-name", "Word"],
		["punctuation", "("],
		["quantifier", "8"],
		["punctuation", ")"]
	]],
	["operator", "+"],
	["operator", "["],
	["quantifier", "3"],
	["string", ["'-'"]],
	["operator", "+"],
	["standard-pattern", [
		["standard-pattern-name", "Word"],
		["punctuation", "("],
		["quantifier", "4"],
		["punctuation", ")"]
	]],
	["operator", "]"],
	["operator", "+"],
	["string", ["'-'"]],
	["operator", "+"],
	["standard-pattern", [
		["standard-pattern-name", "Word"],
		["punctuation", "("],
		["quantifier", "12"],
		["punctuation", ")"]
	]],
	["punctuation", ";"],

	["operator", "}"],

	["keyword", "@require"], ["string", ["\"GUID.np\""]], ["punctuation", ";"],

	["keyword", "@namespace"],
	["namespace", "Basic"],

	["operator", "{"],

	["keyword", "@search"],
	["keyword", "@pattern"],
	["pattern", [
		["pattern-name", "GUID-in-Braces"]
	]],
	["operator", "="],
	["string", ["'{'"]],
	["operator", "+"],
	["name", "GUID"],
	["operator", "+"],
	["string", ["'}'"]],
	["punctuation", ";"],

	["operator", "}"]
]
