master
Jordan Orelli 10 years ago
parent 1ff4d35845
commit 024d4fdc6d

@ -274,7 +274,7 @@ func lexRoot(l *lexer) stateFn {
return lexNumber
case unicode.IsSpace(r):
return lexRoot
case unicode.IsLower(r), unicode.IsUpper(r):
case unicode.IsPrint(r):
l.keep(r)
return lexNameOrString
default:

@ -0,0 +1,2 @@
# https://github.com/jordanorelli/moon/issues/2
some_path: /path/to/file

@ -0,0 +1,4 @@
{t_comment https://github.com/jordanorelli/moon/issues/2}
{t_name some_path}
{t_object_separator :}
{t_string /path/to/file}
Loading…
Cancel
Save