1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Atoms must be one or more character.

This commit is contained in:
Rob Rix 2015-09-18 16:31:25 -04:00
parent 654492158a
commit b71b40bf6f

View File

@ -9,7 +9,7 @@ enum Swift: Equatable {
static let ws = ^" \t\n".characters
static let word = concat <^> (alphabetic <|> ^"_")+
static let atom = concat <^> not(ws <|> ^")")*
static let atom = concat <^> not(ws <|> ^")")+
static let quoted = join(^"'", join((concat <^> not(^"'")*), ^"'"))
static let symbol = Swift.Symbol <^> (join(^"\"", join((concat <^> not(^"\"")*), ^"\"")) <*> (^"<" *> interpolate(concat <^> alphabetic+, ^"," <* ws*) <* ^">"))