From ecf69cfedda875a387eaa31085baba7fd0a66675 Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Sun, 27 Jun 2021 07:37:18 +0300 Subject: [PATCH] Allow '/' and '$' characters in IDs to proper parsing of OpenAPI 3 yaml specifications --- yaml.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml.lua b/yaml.lua index 55211dc..457720b 100644 --- a/yaml.lua +++ b/yaml.lua @@ -134,7 +134,7 @@ local tokens = { {":", "^:"}, {"pipe", "^(|)(%d*[+%-]?)", sep = "\n"}, {"pipe", "^(>)(%d*[+%-]?)", sep = " "}, - {"id", "^([%w][%w %-_]*)(:[%s%c])"}, + {"id", "^([%w/$][%w %-_/$]*)(:[%s%c])"}, {"string", "^[^%c]+", noinline = true}, {"string", "^[^,%]}%c ]+"} };