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:
parent
654492158a
commit
b71b40bf6f
@ -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*) <* ^">"))
|
||||
|
Loading…
Reference in New Issue
Block a user