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 ]+"} };