mirror of
https://github.com/github/semantic.git
synced 2025-01-02 12:23:08 +03:00
Add language-agnostic handling of while statements.
This commit is contained in:
parent
a49ca3cbe6
commit
ed217d9d10
@ -89,6 +89,7 @@ defaultTermAssignment source category children allChildren
|
||||
|
||||
(Comment, _) -> S.Comment (toText source)
|
||||
(If, condition : body) -> S.If condition body
|
||||
(While, expr : rest ) -> S.While expr rest
|
||||
(Return, _) -> S.Return children
|
||||
|
||||
(_, []) -> S.Leaf (toText source)
|
||||
|
Loading…
Reference in New Issue
Block a user