maryvilledev / codesplainUI

Web app for breaking down and annotating Python 3 source code.
https://www.codesplain.io
GNU General Public License v3.0
2 stars 2 forks source link

Use tags array in highlight function #446

Closed Hopding closed 7 years ago

Hopding commented 7 years ago

Description

This PR causes the highlighting function to use the last element of a node's tags array property as its type. This change depends on the parser updates introduced in https://github.com/maryvilledev/codesplain/pull/76#pullrequestreview-35816890, so https://github.com/maryvilledev/codesplain/pull/76#pullrequestreview-35816890 should be merged before this PR.

Motivation and Context

Fixes #442. We want more specific information about certain nodes, such as function calls and boolean values.

Checklist:

Screenshots (if appropriate):