1
1
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:
Rob Rix 2017-01-20 16:40:34 -05:00
parent a49ca3cbe6
commit ed217d9d10

View File

@ -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)